[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
extra lines added by @finish in @display for DocBook
From: |
Per Bothner |
Subject: |
extra lines added by @finish in @display for DocBook |
Date: |
Thu, 06 Dec 2012 22:41:42 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
This bug is in the 4.13.91 snapshot.
Consider this test file:
@settitle A test
@node Intro
@chapter Intro
@display
line 1
@findex line2
line 2
@findex line3
line 3
@end display
Generate DocBook:
$ makeinfo --docbook foo.texi
The output is:
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!ENTITY tex "TeX">
<!ENTITY latex "LaTeX">
]>
<book id="foo.xml" lang="en">
<title>A test</title>
<chapter label="1" id="Intro">
<title>Intro</title>
<literallayout>line 1
<indexterm role="fn"><primary>line2</primary></indexterm>
line 2
<indexterm role="fn"><primary>line3</primary></indexterm>
line 3
</literallayout></chapter>
</book>
Notice that each indexterm is on a separate line.
Since this is in a <literallayout> this means we get extra blank
lines in the final output.
In contract, when generating --html we don't get this problem:
<h2 class="chapter">1 Intro</h2>
<div class="display">
<pre class="display">line 1
<a name="index-line2"></a>line 2
<a name="index-line3"></a>line 3
</pre></div>
--
--Per Bothner
address@hidden http://per.bothner.com/
- extra lines added by @finish in @display for DocBook,
Per Bothner <=