https://bugs.documentfoundation.org/show_bug.cgi?id=165416
Bug ID: 165416
Summary: Writer/Web strips out header contents
Product: LibreOffice
Version: 25.2.0.3 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: Writer Web
Assignee: [email protected]
Reporter: [email protected]
Description:
When editing an existing HTML file, Writer/Web completely overwrites all header
contents, stripping out e.g. style tags and scripts.
Specifically this also affects styles defined in Writer/Web itself: E.g. when
editing a file with customized format for preformatted text and saving it at a
time, when no preformatted paragraph exists, that defined style is lost. As a
consequence, it is not really possible to create HTML templates.
The ability to have HTML tablets would be of particular interest when planning
to later copy/paste to Emails, where it helps that Writer/Web produces much
more straight forward HTML than HTML export from regular Writer.
Steps to Reproduce:
1. In any LibreOffice program: File > New > HTML Document.
2. Type: Hello world <ENTER>
3. Styles > Preformatted Text
4. Type: int main() {}
5. Styles > Edit Style > Area: Set background color to e.g. #eeeeee (Light Gray
5)
6. File > Save as /tmp/a.html (for comparison)
7. File > Save as /tmp/b.html
8. Delete preformatted paragraph
9. File > Save
10. Close Writer/Web
11. Reopen /tmp/b.html in Writer web
12. Write a new "Preformatted Text" paragraph
Actual Results:
The new preformatted paragraph has the default white background.
Expected Results:
The HTML file should have retained the information about the <pre> style having
been customized to have a gray background color.
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 25.2.0.3 (X86_64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 12; OS: Linux 6.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF8); UI: en-US
Flatpak
Calc: threaded
--
You are receiving this mail because:
You are the assignee for the bug.