Bug 162741 - FILESAVE HTML Named anchors in a paragraph are glommed to the beginning
Summary: FILESAVE HTML Named anchors in a paragraph are glommed to the beginning
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer Web (show other bugs)
Version:
(earliest affected)
24.8.0.3 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
Depends on:
Blocks: Writer-Web-Layout
  Show dependency treegraph
 
Reported: 2024-09-02 05:23 UTC by Graeme Gill
Modified: 2024-10-04 11:38 UTC (History)
2 users (show)

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 Graeme Gill 2024-09-02 05:23:53 UTC
When editing an html file created by another application (i.e. Seamonkey Composer), or when adding html named anchors using insert->anchor in Writer/Web, the anchors all end up in a single location within the page, irrespective of where they were originally placed. This means that a hyperlink to a specific place in the page doesn't jump to where it should. In addition, there is no visible indication of where an anchor is in the document, to allow it to be examined or edited or moved. There is no entry in the view menu to turn visibility of the anchors on.

I'm finding this bug/limitation severely handicaps Writer/Web as an HTML editing tool in my usage.
Comment 1 V Stuart Foote 2024-09-02 18:51:53 UTC
On save and reopen, the named Anchor(s) entered (as bookmarks) move not to top of page, but to beginning of the paragraph where they were made in the HTML saved from Writer Web.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c52f139b4f7140033144dde29f70a39ebedb6aa0
CPU threads: 8; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 2 Buovjaga 2024-10-04 11:38:18 UTC
Code pointer: https://git.libreoffice.org/core/+/ed172f76005d6e7b861b51199b5d897254b0c76b/sw/source/filter/html/wrthtml.cxx#1270

Note the comment:

// Output all bookmarks in this paragraph. The content position
// for the moment isn't considered!

One issue per report, so the bookmark indicators not being visible in Writer/Web should be filed separately.