diff options
author | jfieber <jfieber@FreeBSD.org> | 1997-01-19 21:21:18 +0000 |
---|---|---|
committer | jfieber <jfieber@FreeBSD.org> | 1997-01-19 21:21:18 +0000 |
commit | 53fb34f6b959ed023e794047bf53ae691be2e949 (patch) | |
tree | 5a8da6749455de41d50a26d2ed1a9a6f2061828c /usr.bin | |
parent | 81b3c1218e3cd659cbd9560212e6f8f01f168288 (diff) | |
download | FreeBSD-src-53fb34f6b959ed023e794047bf53ae691be2e949.zip FreeBSD-src-53fb34f6b959ed023e794047bf53ae691be2e949.tar.gz |
Make -hdr and -ftr options (to include arbitrary HTML at the
top and bottom of output) work with docbook.
Diffstat (limited to 'usr.bin')
-rwxr-xr-x | usr.bin/sgmlfmt/sgmlfmt.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/sgmlfmt/sgmlfmt.pl b/usr.bin/sgmlfmt/sgmlfmt.pl index de6b1f3..0df4e7a 100755 --- a/usr.bin/sgmlfmt/sgmlfmt.pl +++ b/usr.bin/sgmlfmt/sgmlfmt.pl @@ -112,7 +112,7 @@ sub sgmlparse { $defines = "-i $defines"; } open($ifhandle, "$sgmls $defines $decl $file | " . - "$instant -Dfilename=$fileroot -t ${dtd}-${replacement}.ts |"); + "$instant -Dfilename=$fileroot $instantopts -t ${dtd}-${replacement}.ts |"); } # @@ -696,6 +696,8 @@ sub main { $dtd = "docbook"; $decl = "/usr/share/sgml/docbook/docbook.dcl"; if ($opt_f eq 'html') { + if ($opt_hdr) {$instantopts .= " -D \"inchdr=${opt_hdr}\"";} + if ($opt_ftr) {$instantopts .= " -D \"incftr=${opt_ftr}\"";} &docbook_html(); } else { |