groff
[Top][All Lists]
Advanced

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

[Groff] Bugs in grohtml


From: James J. Ramsey
Subject: [Groff] Bugs in grohtml
Date: Wed, 28 May 2003 12:30:21 -0700 (PDT)

If I groff the XWrits man page
(http://www.lcdf.org/xwrits) with the options "-man
-Thtml), the HTML version of the man page looks mostly
OK, but is wrongly formatted in a few places. 

This is how a part of the HTML man page looks in
Konqueror:

xwrits
flashtime=:2
after=10
flashtime=:.03

This is how it looks in w3m:

xwrits
flashtime
=:2 after=
10
flashtime
=:.03

This is what the corresponding piece of the HTML man
page looks like:

<table width="100%" border=0 rules="none" frame="void"
       cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">

<p>xwrits flashtime=:2 after=10 flashtime=:.03</p>
</td>
<td width="74%">
</td>
</table>


Trying to get HTML output from -mom formatted
documents smoked out another bug in grohtml. Running
the example document typewrite.mom through groff with
the "-mom -Thtml" flags gets me a lot of error
messages, but the interesting one seems to be this
one:

/path/to/tmac/om.tmac:109: warning: macro `END' not
defined (probably missing space after `EN')

This seems to be the product of the style of macro
defs in om.tmac. .MAC is an alias for .de, and macros
are typically defined as

.MAC FOO END
.\" Do stuff
.END

grohtml doesn't seem to understand that .de can have a
second argument, or what it's for.


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]