[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] bug in text list output from weak spring
From: |
Sam Liddicott |
Subject: |
[Texmacs-dev] bug in text list output from weak spring |
Date: |
Wed, 15 Dec 2010 14:23:43 -0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14pre) Gecko/20101214 Lanikai/3.1.8pre |
The list macro appends a space to the end of the final item when the
document is converted to verbatim mode.
This is due to a tail weak spring <htab|0fn|first> emitted as part of
the padding.
Perhaps weak springs should not have a representation in text output
mode? Perhaps at least tail weak springs?
Explanation notes below:
<\list|<inactive|<macro|x|<arg|x>>>|<inactive|<macro|x|<arg|x>>>>
apple
pear
</list>
when converted with
texmacs -s -c in.tm out.txt
the word "pear" has a trailing space.
I think this should not be the case.
The fault seems to be in <htab|0fn|first> used by padded-normal as used
by render-list
<assign|render-list|<\macro|body>
<\padded-normal|<item-vsep>|<item-vsep>>
<\indent-left|<item-hsep>>
<surround|<no-page-break*>|<no-indent*>|<arg|body>>
</indent-left>
</padded-normal>
</macro>>
padded-normal is:
<assign|padded-normal|<macro|before|after|body|<surround|<vspace*|<arg|before>><no-indent>|<htab|0fn|first><vspace|<arg|after>>|<arg|body>>>>
It passes a <htab|0fn|first> as part of the argument to surround.
Sam
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Texmacs-dev] bug in text list output from weak spring,
Sam Liddicott <=