[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] surround interacts badly with mode prog on html export
From: |
Sam Liddicott |
Subject: |
[Texmacs-dev] surround interacts badly with mode prog on html export |
Date: |
Wed, 23 Mar 2011 09:19:26 -0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17pre) Gecko/20110322 Lanikai/3.1.10pre |
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>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Texmacs-dev] surround interacts badly with mode prog on html export,
Sam Liddicott <=