Description: When hitting F1 in the Danish LibreOffice, no index is shown. The search function is not working either The same is happening in the Danish online help Steps to Reproduce: Offline help 1. Start LibreOffice with Danish language 2. Press F1 Online help 1. go to help.libreoffice.org 2. choose Danish in the Language dropdown menu Actual Results: Offline and online help: No index is shown and it is not possible to search in the chosen module Expected Results: An index and the possibility to search in the chosen module, like in e.g. English: https://help.libreoffice.org/latest/en-US/text/shared/05/new_help.html or in German: https://help.libreoffice.org/latest/de/text/shared/05/new_help.html Reproducible: Always User Profile Reset: No OpenGL enabled: Yes Additional Info: My current version of LibreOffice is 7.2.2.2 x64 (on Windows 10), but I have also had the issue for previous versions
Created attachment 175842 [details] Screenshot of Danish offline help
Created attachment 175843 [details] Screenshot of Danish online help
Created attachment 175844 [details] Screenshot of the English online help
The generated bookmarks file is somehow broken, still in 7.3: https://help.libreoffice.org/7.3/da/bookmarks.js
I checked the contents of the file and found two errors: Line number 2 and 3: afsnit -- automatisk nummerering"}, {url:"da/text/swriter/guide/auto_numbering.html?DbPAR=WRITER#bm_id3147407", app:"WRITER", text:" should be : {url:"da/text/swriter/guide/auto_numbering.html?DbPAR=WRITER#bm_id3147407", app:"WRITER", text:"afsnit -- automatisk nummerering"}, Line number 3069 and 3070: attributten bred harpunpil"}, {url:"da/text/smath/01/03090600.html?DbPAR=MATH#bm_id3154011", app:"MATH", text:" Should be: {url:"da/text/smath/01/03090600.html?DbPAR=MATH#bm_id3154011", app:"MATH", text:"attributten bred harpunpil"}, When I correct the errors in the offline bookmarks.js, the index appears as expected when I hit F1.
I suspect a newline character in the two strings to be the cause to the bug. I have removed the characters in Weblate for LibreOffice Help 7.2 and await posibillity to test whether it resolves the issue.
(In reply to Jesper Korsholm Brogaard from comment #6) > I suspect a newline character in the two strings to be the cause to the bug. > > I have removed the characters in Weblate for LibreOffice Help 7.2 and await > posibillity to test whether it resolves the issue. Can you do it in Help master as well, please? Then I could check it locally.
I have now made the changes in Help Master.
I decided to create a patch for fixing this issue at the level of the .js file generation: https://gerrit.libreoffice.org/c/help/+/124056 This way there will be no breakage even if newlines slip into translations in the future.
Ilmari Lauhakangas committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/fb9c746f6aaae147aa16b1f2b682e01d07003d03 tdf#145232 get_bookmark.xsl: Use normalize-space()