groff
[Top][All Lists]
Advanced

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

Re: [Groff] new grohtml: white space problem.


From: Gaius Mulley
Subject: Re: [Groff] new grohtml: white space problem.
Date: Sun, 23 Jan 2000 11:39:10 +0000 (GMT)

> > > .LP
> > > .URL Germany "ftp://groff.ffii.org/pub/groff/";
> > > |
> > > .URL USA "ftp://ftp.gnu.org/gnu/groff/";
> > 
> > Problem: the first "|" of each line is missing a leading white space
> > space.
> > 
> > How to ensure the spaces get put there?
> 
> This is a feature grohtml (unfortunately -- AFAIK, Gaius hasn't found
> a good workaround yet).  HTML stuff gets written as specials which
> don't consume space for troff, causing some miscalculation if placed
> at the beginning of a paragraph.  A workaround is to write
> 
> .LP
> \&
> .URL ...
> |
> .URL ...

yes, Werner has hit the nail on the head. I'm not sure how to solve this
problem elegantly. I beginning to think the lesser of all the evils is
to add a \& in the relevant places within tmac.arkup (as suggested by Werner
some time ago). Ie before .HTML is called in .MAILTO, .FTP, .URL
What do you think?

BTW  Thanks for the   .cflags 0 -\(hy\(em\(en   tip

Anyhow here are the diffs for the tmac.arkup.

cheers Gaius


diff -aruN groff/tmac/tmac.arkup groff-html/tmac/tmac.arkup 
--- groff/tmac/tmac.arkup       Sun Jan  2 00:05:07 2000
+++ groff-html/tmac/tmac.arkup  Sun Jan 23 11:15:45 2000
@@ -37,6 +37,7 @@
 .\"
 .de URL
 .  ie '\*(.T'html' \{\
+\&
 .    HTML <a href="\\$2">\\$1</a>
 .  \}
 .  el \{\
@@ -70,6 +71,7 @@
 .\"        $2 is the ftp url
 .de FTP
 .  ie '\*(.T'html' \{\
+\&
 .    HTML <a href=\\$2>\\$1</a>
 .  \}
 .  el \{\
@@ -89,6 +91,7 @@
 .\" how do we do this --fixme--
 .\"  \h'\w' ''\h'-\w' '' doesn't work..
 .  ie '\*(.T'html' \{\
+\&
 .    ie '\\$2'' \{\
 .      HTML "<a href=mailto:\\$1>\\$1</a>"
 .    \}


reply via email to

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