Bug 41281 - FILESAVE: Unable to save partial formatting of text to HTML
Summary: FILESAVE: Unable to save partial formatting of text to HTML
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
: 41280 (view as bug list)
Depends on:
Blocks: Cell-Direct-Formatting-Parts (X)HTML-Export
  Show dependency treegraph
 
Reported: 2011-09-27 22:02 UTC by Sergey
Modified: 2024-04-30 07:03 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
SCREENSHOT (5.72 KB, application/zip)
2011-09-27 22:03 UTC, Sergey
Details
SCREENSHOT (5.72 KB, application/zip)
2011-09-27 22:03 UTC, Sergey
Details
Confirm and extended test (7.26 KB, application/zip)
2011-09-29 02:16 UTC, Alastair Rae
Details
test ODS to save as HTML, with many examples of part of text formatting (11.69 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-06-23 12:22 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey 2011-09-27 22:02:36 UTC
Problem description: 
If some part of text at cell have underlining then underlining will be lost when save to HTML
Steps to reproduce:
1. Create  spreadsheet
2. Print some text and underline part of it
3. Save as document HTML

Current behavior:
Underlining is lost

Expected behavior:
Some part of text must be underlined
Comment 1 Sergey 2011-09-27 22:03:22 UTC
Created attachment 51699 [details]
SCREENSHOT

SCREENSHOT COMMENT
Comment 2 Sergey 2011-09-27 22:03:53 UTC
Created attachment 51700 [details]
SCREENSHOT

SCREENSHOT COMMENT
Comment 3 Alastair Rae 2011-09-29 01:54:10 UTC
*** Bug 41280 has been marked as a duplicate of this bug. ***
Comment 4 Alastair Rae 2011-09-29 02:16:31 UTC
Created attachment 51745 [details]
Confirm and extended test

Confirmed for underline, italic and bold. Whole cell formatting is output correctly but partial formatting is ignored.
Comment 5 Wagner Macedo 2013-08-05 01:55:19 UTC
What is the supposed difference between "Save as Document HTML (Calc)" and "Export to XHTML"?

At my tests using LibreOffice 4.1, I still confirm the bug, using the former. But in the latter way, it is working.
Comment 6 Wagner Macedo 2013-08-06 18:47:25 UTC
(In reply to comment #5)
> What is the supposed difference between "Save as Document HTML (Calc)" and
> "Export to XHTML"?
> 
> At my tests using LibreOffice 4.1, I still confirm the bug, using the
> former. But in the latter way, it is working.

My questions were already answered in the list, http://lists.freedesktop.org/archives/libreoffice/2013-August/054989.html
Comment 7 Wagner Macedo 2013-12-17 11:54:58 UTC
Sorry, but I removed my name from assignee list. I'm lacking of time to work at even this (appearing) simple bug.
Comment 8 Joel Madero 2014-02-27 23:03:46 UTC
In order to limit the confusion between ProposedEasyHack and EasyHack and to make queries much easier we are changing ProposedEasyHack to NeedsDevEval.

Thank you and apologies for the noise
Comment 9 Robinson Tryon (qubit) 2015-12-13 11:21:42 UTC Comment hidden (obsolete)
Comment 10 Sergey 2016-05-07 21:26:20 UTC
Bug still present.
LibreOffice Version: 5.1.1.3
Build ID: 89f508ef3ecebd2cfb8e1def0f0ba9a803b88a6d
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: ru-RU (ru_RU)
Comment 11 QA Administrators 2017-05-22 13:41:16 UTC Comment hidden (obsolete)
Comment 12 Thomas Lendo 2018-10-09 07:22:33 UTC
Still reproducible with File > Save (NOT with File > Export).

Version: 6.2.0.0.alpha0+ (x64)
Build ID: e46f8a9a4e3c5b0542c0813b476b449f3af8d607
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-10-07_23:36:50
Locale: de-AT (de_AT); Calc: CL
Comment 13 QA Administrators 2019-10-10 02:40:03 UTC Comment hidden (obsolete)
Comment 14 Stéphane Guillou (stragu) 2021-06-23 12:22:05 UTC
Created attachment 173105 [details]
test ODS to save as HTML, with many examples of part of text formatting

Adding another example file to easily test part of text formatted:
- underline
- strike through
- overline
- bold
- italic
- colour
- superscript
- subscript

Reproduced in:

Version: 7.0.6.2
Build ID: 144abb84a525d8e30c9dbbefa69cbbf2d8d4ae3b
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: e3086b58eb5427d520b86c185f9d911bb6f7a3a0
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-06-21_15:37:11
Calc: threaded

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: e3086b58eb5427d520b86c185f9d911bb6f7a3a0
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-06-21_15:37:11
Calc: threaded
Comment 15 QA Administrators 2023-06-24 03:14:30 UTC Comment hidden (obsolete)
Comment 16 ady 2023-06-24 20:10:51 UTC
Using a recent LO Dev 24.2.alpha version with attachment 173105 [details] from comment 14:

* Export as XHTML fails with partial underline and partial strike through.

* Save as HTML fails with all partial formatting text.

* Selecting several cells with partial formatting text, copying and pasting into Writer, also fails to paste the partial formatting. However, when doing it one cell at a time, the partial formatting is kept.