[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff] Re: rules problem in grohtml
From: |
Gaius Mulley |
Subject: |
[Groff] Re: rules problem in grohtml |
Date: |
24 Nov 2004 13:31:34 +0000 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Werner LEMBERG <address@hidden> writes:
> > This line (using -mwww)
> >
> > .HR
> >
> > creates the following HTML code:
> >
> > <p><hr></p>
> >
> > This is invalid: <hr> must not be positioned within <p>...</p>.
>
> The same problem happens with
>
> .ULS
> .LI
> .ULE
>
> which creates the following (invalid) code:
>
> <ul>
> <p><li></p>
> </ul>
>
> <li> must not be positioned within <p>...</p>.
>
> > Can you fix this?
>
> This too, please :-)
Certainly :-) both fixes are combined in this patch
--- groff-cvs/tmac/www.tmac Wed Nov 24 14:18:21 2004
+++ groff-html/tmac/www.tmac Wed Nov 24 15:12:35 2004
@@ -680,7 +680,7 @@
.\" Produce a horizontal line.
.\"
.de HR
-. HTML-NS "<hr>"
+. HTML</p> "<hr>"
..
.\" --------------------------------------------------------------------
.\" NHR
@@ -778,7 +778,7 @@
.\"
.de LI
. ie \\n[www-html] \
-. HTML "<li>"
+. HTML</p> "<li>"
. el \{\
. www:paraspace
. in \\n[www-depth]u
in fact I think this is a better solution to the one I just sent..
as it utilizes the .HTML</p> macro rather than in-lining the tag.
Gaius