bugunrtf - Bugs: bug #63102, all caps off not working because...

 
 

bug #63102: all caps off not working because of bad closing tag order

Submitter:  Kevin Brannen <kbrannen>
Submitted:  Sun 25 Sep 2022 12:23:50 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 25 Sep 2022 12:23:50 AM UTC, original submission:  

I have an RTF doc which has:

\par \pard \qc \sa60 \caps1 \scaps0 \fs28 Parsons Technology, Inc.
\par \pard \qc \sa60 \caps0 Cedar Rapids, Iowa
\v1 \b0 \cf0 \fs24 \kerning28
\par (next paragraph)

but it shows up as:

PARSONS TECHNOLOGY, INC.
CEDAR RAPIDS, IOWA

In fact, the entire document after that point is in all caps, which makes it look like the "\caps0" directive isn't being honored.

The HTML produced is:

<span style="text-transform: uppercase">
  <font size="4">
    <center>Parsons Technology, Inc.
    <br>
  </font>
</span>
</center>
<center>Cedar Rapids, Iowa
  <font color="#000000">
    <font size="3">
    <br>
    <b></b>
   </font></font>
   <font size="3"><b><font color="#000080"></font></b></font>
   <b><font color="#000080"><font size="4"><br>
 </font></font></b>
</center>

Trying some hand re-coding, as soon as I changed it to:

<span style="text-transform: uppercase">
    <font size="4">
        <center>Parsons Technology, Inc.<br>
        </center>
    </font>
</span>

then it looked correct when reloaded.

So when the CENTER tags weren't intermixed and in the wrong order, then the browser showed everything as correct for that page. Later in the doc, the problem occurs again where all of the text goes to all caps, but it's also immediately after a paragraph with CENTER. Again, moving the close CENTER earlier to right after the text and before other close tags so the opens and closes were in the correct order, then it was fixed too. And so on for the rest of the doc.

So basically, the problem is putting the closing tags in the wrong order (especially CENTER) confuses browsers and so the SPAN with the transform is never turned off ... or I think that's the problem.


This is for version 0.21.10, on Ubuntu 20.04.4 LTS. The browser is Firefox 91.9.0esr (64-bit) if it matters. Chrome shows the same problem as a check.

Kevin Brannen <kbrannen>

 

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

Attach Files:
   
   
Comment:
   

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 kbrannen (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.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code