[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#639292: lintian: --color=html does not close '<p>' - breaks xhtml (lintian.d.o)



On Thu, 2011-08-25 at 19:15 +0200, Niels Thykier wrote:
> Notice how none of the "<p>" tags are closed; given xhtml is
> xml-based, all tags must be closed or the document will be malformed.
[...]
> 	    push(@o,"<p>$_\n");
> [...]
> 
> becomes
> 
> [...]
> 	    push(@o,"<p>$_</p>\n");
> [...]
> but I do not fully understand the code there.

It's a fairly uncomplicated function, other than keeping track of
whether we're trying to display literal text - e.g the two examples on
http://lintian.debian.org/tags/binary-or-shlib-defines-rpath.html - and
your change looks sane enough to me, fwiw.

While we're on the subject of that page, it would be nice to do
something about the <pre> -> <p> spacing, as at least in Iceweasel here
there's a large gap after each of the gcc lines.

Regards,

Adam




Reply to: