The following commit has been merged in the master branch:
commit 4458aca38a741746ca275a55292d32b876b89469
Author: Niels Thykier <[email protected]>
Date:   Fri Aug 26 12:37:02 2011 +0200

    Always close <p>-tags with --color=html
    
    The output is used in a xhtml (xml) page, so all tags must be
    properly closed.

diff --git a/debian/changelog b/debian/changelog
index 535d341..657a497 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -94,6 +94,10 @@ lintian (2.5.3) UNRELEASED; urgency=low
     + [NT] Reject profiles containing an unknown field.
   * lib/Lintian/Tags.pm:
     + [NT] Track which tags had overrides that have been dropped.
+  * lib/Text_utils.pm:
+    + [NT] Close <p>-tags in dtml_to_html since the output is used
+      in xhtml (xml), where all tags must be closed properly.
+      (Closes: #639292)
 
   * private/*:
     + [JW] Use LC_ALL rather than LANG, since LC_ALL overrules
diff --git a/lib/Text_utils.pm b/lib/Text_utils.pm
index b4e4f06..fba30d5 100644
--- a/lib/Text_utils.pm
+++ b/lib/Text_utils.pm
@@ -145,7 +145,7 @@ sub dtml_to_html {
                push(@o,'</pre>');
                $pre=0;
            }
-           push(@o,"<p>$_\n");
+           push(@o,"<p>$_</p>\n");
        }
     }
     if ($pre) {

-- 
Debian package checker


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to