This code has the first and last line output separately in html export:
<\surround|x|x>
<\with|mode|prog>
-1
-2
-3
-4
</with>
</surround>
It comes out as:
<p>
<p>
x<tt class="verbatim">-1</tt>
</p>
<pre class="verbatim"xml:space="preserve">
-2
-3</pre>
<p>
<tt class="verbatim">-4</tt>x
</p>
</p>
line 1 and 4 have extra spacing.
If mode prog is not used, html export has everything in a paragraph:
<p>
<p>
x-1
</p>
<p>
-2
</p>
<p>
-3
</p>
<p>
-4x
</p>
</p>
<p>
If surround is not used, then mode=prog also works fine:
<pre class="verbatim"xml:space="preserve">
-1
-2
-3
-4</pre>
Surround damages the first and last line of mode prog for html export.
Surround inside mode prog works, but that assumes that what you surround
with should also be in prog mode...
Also note, this is a specific interaction with mode prog - it doesn't
matter how many document lines exist above and below the mode|prog block
inside the surround block, as long as the mode prog block is included in
a surround tag, then it's first and last lines will be damaged -
separated and with the wrong spacing in html mode.
e.g.
<\surround|x|x>
pre
<\with|mode|prog>
-1
-2
-3
-4
</with>
post
</surround>
renders as:
<p>
<p>
xpre
</p>
<p>
<tt class="verbatim">-1</tt>
</p>
<pre class="verbatim"xml:space="preserve">
-2
-3</pre>
<p>
<tt class="verbatim">-4</tt>
</p>
<p>
postx
</p>
</p>
_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev