When exporting a sheet to (X)HTML, there's every chance that the resulting file might need additional massaging. However, the output is generated as one big textual blob. It would be nice is additional linebreaks could be inserted at least at logical levels (i.e. after </xxx) tags, to make editing in plain text editors a lot easier!
Steps to Reproduce:
1. Export a sheet to (X)HTML
2. Open in a plain text editor
One big long unstructured blob
A text with line-breaks at sensible places
User Profile Reset: No
Version: 220.127.116.11 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 8; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-US
Calc: CL threaded
Please test the upcoming version 7.5.3, which can be found at the bottom of the download page: https://www.libreoffice.org/download/download-libreoffice/
There is an improvement to the HTML export formatting which should help, not only for Writer. See bug 153839.
Marking as a duplicate but please let us know if you think the fix is not sufficient.
*** This bug has been marked as a duplicate of bug 153839 ***