summaryrefslogtreecommitdiffstats
path: root/usr.bin/sgmlfmt
diff options
context:
space:
mode:
authorjfieber <jfieber@FreeBSD.org>1995-05-18 03:01:28 +0000
committerjfieber <jfieber@FreeBSD.org>1995-05-18 03:01:28 +0000
commit72576f0cde47127d8bc49815b77d8ab0e8a29e3e (patch)
tree44f855341baf39104bd2b9c722dc0ed62218fde0 /usr.bin/sgmlfmt
parent56d21b42187f0f163a5c67c2126117d7ff8bc6fc (diff)
downloadFreeBSD-src-72576f0cde47127d8bc49815b77d8ab0e8a29e3e.zip
FreeBSD-src-72576f0cde47127d8bc49815b77d8ab0e8a29e3e.tar.gz
Remove extraneous empty paragraphs (<p></p>) from the output.
Diffstat (limited to 'usr.bin/sgmlfmt')
-rwxr-xr-xusr.bin/sgmlfmt/sgmlfmt.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/sgmlfmt/sgmlfmt.pl b/usr.bin/sgmlfmt/sgmlfmt.pl
index 959b1f0..19ba7e3 100755
--- a/usr.bin/sgmlfmt/sgmlfmt.pl
+++ b/usr.bin/sgmlfmt/sgmlfmt.pl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id:$
+# $Id: sgmlfmt.pl,v 1.1.1.1 1995/05/09 23:58:06 jfieber Exp $
# Format an sgml document tagged according to the linuxdoc DTD.
# by John Fieber <jfieber@freebsd.org> for the FreeBSD documentation
@@ -293,6 +293,11 @@ sub html2html {
s/<([\/]*)pre\&gt;/<\1pre>/g;
}
+ # remove extraneous empty paragraphs (it is arguable that this
+ # is really a bug with the DTD, but changing it would break
+ # almost every document written to this DTD.)
+ s/<p><\/p>//;
+
tagsw: {
# titles and headings
if (s/^<@@title>//) {
OpenPOWER on IntegriCloud