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

Submitter:  Sam Liddicott <samjam>
Submitted:  Wed 23 Mar 2011 03:19:54 PM UTC
   
 
Category:  None Priority:  3 - Low
Item Group:  Error Status:  Postponed
Privacy:  Public Assigned to:  samjam
Originator Name:  Open/Closed:  Accepted
Release:  None Release: 
Fixed Release:  None Fixed 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>
Group 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>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by samjam (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-06-23 vdhoeven Priority5 - Normal 3 - Low
        Item GroupNone Error
        StatusNone Postponed
        Assigned toNone samjam
        Open/ClosedOpen Accepted

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code