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

 
 

You are not allowed to post comments on this tracker with your current authentication 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: 3 - Low
Item Group: ErrorStatus: Postponed
Privacy: PublicAssigned to: Sam Liddicott <samjam>
Originator Name: Open/Closed: Accepted
Release: Release: None
Fixed Release: NoneFixed Release: 
Keywords: 

Fri 23 Jun 2017 06:04:12 PM UTC, comment #1:

I won't have time soon to dig into this problem, but would be happy to apply any patch that solves the problem.

Joris van der Hoeven <vdhoeven>
Project Administrator
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 MemberIn charge of this item.

 

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 vdhoeven (Posted a comment)
  • -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):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 23 Jun 2017 06:04:12 PM UTCvdhoevenPriority5 - Normal=>3 - Low
      Item GroupNone=>Error
      StatusNone=>Postponed
      Assigned toNone=>samjam
      Open/ClosedOpen=>Accepted

    Back to the top


    Powered by Savane 3.1-cleanup1