bugGNU TeXmacs - Bugs: bug #32894, surround niteracts badly with mode...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #32894: surround niteracts badly with mode prog in html export

Submitted by:  Sam Liddicott <samjam>
Submitted on:  Wed 23 Mar 2011 03:19:54 PM UTC  
 
Category: NonePriority: 5 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: Release: None
Fixed Release: NoneFixed Release: 
Keywords: 

Wed 23 Mar 2011 03:19:54 PM UTC, original submission:

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>

Sam Liddicott <samjam>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by samjam (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup