[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
@includeverbatim causes spurious empty lines in Info and HTML
From: |
Akim Demaille |
Subject: |
@includeverbatim causes spurious empty lines in Info and HTML |
Date: |
04 Jun 2002 17:17:13 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) |
I have a big document which includes bits from files generated from
the document itself. For instance, for something like:
But the game becomes more interesting when you implement function calls
(which is much more easy than compiling functions).
@example
(print_int (101); print ("\n"))
@end example
@filecaption{21, print-101.tig}
@tccaption{22, --hir-display print-101.tig > print-101.hir}
@havmcaption{23, print-101.hir}
The script sees the address@hidden, print-101.tig}', hence stores
the contents of the @example into the file `print-101.tig', and then
runs `tc --hir-display print-101.tig > print-101.hir', and finally
runs `havm print-101.hir' and stores the result in the file named
`23'.
Finally, macros such as @tccaption and @havmcaption are defined as:
@c tccaption(ORDINAL, TC-ARGUMENTS)
@c ================================
@macro tccaption{ordinal, args}
@example
$ @kbd{tc \args\}
@include extract/\ordinal\
@end example
@noindent @strong{Example \ordinal\}: @i{tc \args\}
@end macro
It works great. My document is really maximally generated, which is
important to keep up to date information. You may have a look at
http://www.lrde.epita.fr/~akim/compil/reports.html for more.
Now my problem is that some section are truly ugly because of spurious
empty lines. It basically amounts to:
foo.texi
Description: TeXInfo document
with the file `foo' containing a single line containing `foo'.
It results in:
/tmp % makeinfo --no-headers foo.texi
Before
BEFORE
<= gross
foo
AFTER
after.
/tmp %
texi2dvi produces exactly what I expect:
Before
BEFORE
foo
AFTER
after.
and html is the worst of all:
/tmp % makeinfo --html foo.texi -o- nostromo 17:13
<html lang="en">
<head>
<title>Sans titre</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name=description content="Sans titre">
<meta name=generator content="makeinfo 4.2">
<link href="http://www.gnu.org/software/texinfo/" rel=generator-home>
</head>
<body>
Before
<br><pre>BEFORE
<pre>foo
</pre>AFTER
</pre>
<p>after.
</body></html>
/tmp % links -dump =(makeinfo --html foo.texi -o-)
Link: generator-home
Before
BEFORE
foo
AFTER
after.
/tmp %
The empty lines all around `foo' are really wrong IMHO.
I have seen activity around the HTML output lately, maybe it is
already fixed somewhere?
It really ought to be equivalent to inlining the foo file, i.e.,
/tmp % cat foo.texi
\input texinfo
Before
@example
BEFORE
foo
AFTER
@end example
@noindent
after.
@bye
/tmp % links -dump =(makeinfo --html foo.texi -o-)
Link: generator-home
Before
BEFORE
foo
AFTER
after.
/tmp %
Thanks!
- @includeverbatim causes spurious empty lines in Info and HTML,
Akim Demaille <=