bugGNU TeXmacs - Bugs: bug #63673, \underline missing in HTML...

 
 

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

bug #63673: \underline missing in HTML converter

Submitter:  hbghlyj
Submitted:  Mon 16 Jan 2023 08:38:43 PM UTC
   
 
Category:  Conversion Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  vdhoeven
Originator Name:  Open/Closed:  Closed
Release:  None Release:  2.1.2
Fixed Release:  None Fixed Release: 
Keywords: 

Mon 30 Oct 2023 01:12:41 PM UTC, comment #4: 

Thanks, this is indeed the way to add more markup primitives.
I applied your patch(es) in revision 14229.

Joris van der Hoeven <vdhoeven>
Group administrator
Sun 29 Jan 2023 01:12:40 PM UTC, comment #3: 

I have extended the patch for handling a few more tags, and not using <u> for underline (see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/u). However, this does not work when the decorated text spans over several paragraphs; needs more work.


(file #54284)

Philippe Joyez <pjoyez>
Group Member
Fri 20 Jan 2023 03:44:56 PM UTC, comment #2: 

Similarly, if I type \overline press Enter and type aaaaa, it displays as underlined text.
It displays as <overline|aaaaa> in source view, as expected.
However, after converted to HTML, I only get

<p>
  aaaaa
</p>

so the formating is lost.

hbghlyj
Tue 17 Jan 2023 10:06:03 AM UTC, comment #1: 

I've attached a patch. I would be grateful if anyone could review/test this and merge.

(file #54238)

Jeroen Wouters <jeronim>
Group Member
Mon 16 Jan 2023 08:38:43 PM UTC, original submission:  

If I type \underline press Enter and type aaaaa, it displays as underlined text.
It displays as <underline|aaaaa> in source view, as expected.
However, after converted to HTML, I only get

<p>
  aaaaa
</p>

so the formating is lost.
I wish it could be converted to

<p>
  <u>aaaaa</u>
</p>

or

<p style="text-decoration:underline">
  aaaaa
</p>


Best Regards

hbghlyj

 

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

Attached Files
file #54284:  more-html-export.patch added by pjoyez (3KiB - text/x-patch)
file #54239:  html-underline.diff added by jeronim (1KiB - text/x-patch)

 

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 pjoyez (Updated the item)
  • -email is unavailable- added by jeronim (Updated the item)
  • -email is unavailable- added by hbghlyj (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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-10-30 vdhoeven StatusReady For Test Fixed
        Assigned toNone vdhoeven
        Open/ClosedOpen Closed
    2023-01-29 pjoyez Attached File- Added more-html-export.patch, #54284
    2023-01-17 jeronim StatusNone Ready For Test
    2023-01-17 jeronim Attached File- Added html-underline.diff, #54239
    2023-01-17 jeronim Attached File#54238 Removed
    2023-01-17 jeronim Attached File- Added html-underline.diff, #54238

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code