[Libreoffice-bugs] [Bug 123872] New: help/languages.js is not valid Javascript, breaks browser-based docs

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Mar 5 14:19:40 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=123872

            Bug ID: 123872
           Summary: help/languages.js is not valid Javascript, breaks
                    browser-based docs
           Product: LibreOffice
           Version: 6.2.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Documentation
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: jsd.libreoffice at bvac.co.za
                CC: olivier.hallot at documentfoundation.org

First: thanks for LO, great work.

On a fresh install of LO 6.2.0 on MacOS 10.13.6, I clicked on a Help icon,
which opened a browser at URL
file:///Applications/LibreOffice.app/Contents/Resources/help/index.html
However the displayed page was blank.  Browser console revealed an error in
languages.js: "Unexpected token: var"

Discovered languages.js in above dir was not valid JS; it had "-n" at the start
of each line and no commas between the language ID strings.

The installed languages.js looked like this:
  -n var languagesSet = new Set([
  -n 'en-US'
  -n 'am'
...etc

It clearly was intended to look like this:
  var languagesSet = new Set([
  'en-US',
  'am',
  'ar',
...etc

A quick edit to the second style fixed this and docs in browser worked fine
thereafter.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190305/a674be7c/attachment.html>


More information about the Libreoffice-bugs mailing list