[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:14:45 +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>. Can
> you fix this?
yes, sure - here is a patch. Basically it shuts down a possibly
open <p> tag and then emits the specified <hr> tag,
--- groff-cvs/tmac/www.tmac Wed Nov 24 14:18:21 2004
+++ groff-html/tmac/www.tmac Wed Nov 24 14:54:11 2004
@@ -680,7 +680,7 @@
.\" Produce a horizontal line.
.\"
.de HR
-. HTML-NS "<hr>"
+. if \\n[www-html] .nop \X^html</p>:<hr>^
..
.\" --------------------------------------------------------------------
.\" NHR
Gaius