[xml/sgml-commit] [SCM] linuxdoc-tools package for Debian. branch, master, updated. debian/0.9.60-24-gf1f1363

Agustin Martin Domingo agmartin at debian.org
Mon Jun 15 12:30:21 UTC 2009


The following commit has been merged in the master branch:
commit 9bd189d3841fcff798c7f533f6e6aef6fac608fa
Author: Agustin Martin Domingo <agmartin at debian.org>
Date:   Sat Apr 4 21:51:33 2009 +0200

    Remove some extra not needed .Pp
    
    * Collapse adjacent .Pp
    * Remove .Pp before headers and exdented pars

diff --git a/lib/fmt/fmt_txt.pl b/lib/fmt/fmt_txt.pl
index 84ccf89..f5ed9f6 100644
--- a/lib/fmt/fmt_txt.pl
+++ b/lib/fmt/fmt_txt.pl
@@ -327,6 +327,10 @@ $txt->{postASP} = sub
     $txtout .= $_;
   }
 
+  # Remove some extra .Pp
+  $txtout =~ s/(\.Pp\n){2,}/\.Pp\n/g;  # Collapse adjacent .Pp
+  $txtout =~ s/\.Pp\n(\.(IP|NH))/$1/g; # Remove .Pp before headers and exdented pars
+
   if ( $global->{debug} ){
     my $GROFF0;
     my $groff0 = "$global->{tmpbase}.groff.0";

-- 
linuxdoc-tools package for Debian.



More information about the debian-xml-sgml-commit mailing list