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
_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev