Bug 148974 - Redundant/Excessive HTML Tags in Formatted Text
Summary: Redundant/Excessive HTML Tags in Formatted Text
Status: RESOLVED DUPLICATE of bug 65925
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-07 06:09 UTC by Eldar
Modified: 2022-05-07 10:54 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eldar 2022-05-07 06:09:22 UTC
Description:
LO Writer generates redundant tags which are visible on copying and pasting Formatted Text into Wordpress Gutenberg Editor or another HTML Editor.

For example, text "Hello World!" styled with "Heading 1" style should have following formatting HTML tags:

<strong>Hello World!</strong>.

But LO Writer can produce redundant/excessive formatting tags, which can looks following:

<strong>Hell</strong><strong>o</strong> <strong>World!<strong>.

These excessive tags increase complexity of HTML markup and increase size of HTML code. Redundant tags should be minimized/normalized as much as possible without affecting visual representation.

Steps to Reproduce:
1. Copy provided text from provided ODT document;
2. Paste it into Online HTML Editor (https://html-online.com/editor/);
3. You will see a lot of redundant "strong" tags.

Actual Results:
-

Expected Results:
-


Reproducible: Always


User Profile Reset: No



Additional Info:
Link to example .odt file: https://easyupload.io/t7vm6k
Comment 1 Michael Warner 2022-05-07 10:54:05 UTC
Unfortunately, this is an old and well-known issue that has yet to be fixed.

*** This bug has been marked as a duplicate of bug 65925 ***