Re: Bug: Missing end parenthesis in JavaScript regarding HTML exports [9.4.5 (9.4.5-73-g4c7696-elpaplus @ /home/sebbe/.emacs.d/elpa/develop/org-plus-contrib-20210503/)]

2021-05-08 Thread Bastien
Hi Sebastien,

Sebastian Berntsson  writes:

> In lisp/ox-html.el in the function org-html-scripts, there's a missing
> parenthesis in the JavaScript code which causes a syntax error.

thanks for reporting this and sorry for this code typo, this is fixed
in maint and master now.

-- 
 Bastien



Bug: Missing end parenthesis in JavaScript regarding HTML exports [9.4.5 (9.4.5-73-g4c7696-elpaplus @ /home/sebbe/.emacs.d/elpa/develop/org-plus-contrib-20210503/)]

2021-05-07 Thread Sebastian Berntsson

Hi,

In lisp/ox-html.el in the function org-html-scripts, there's a missing
parenthesis in the JavaScript code which causes a syntax error.

The function (and line in question) is:
https://code.orgmode.org/bzg/org-mode/src/master/lisp/ox-html.el#L252

A `}` should be inserted right after that line.

To replicate the bug:
1. Export an .org file to HTML.
2. Open the HTML file in a browser and then open the developer tools in
the browser.
3. Click on the Console tab in the developer tools.
4. You should see a JavaScript syntax error in the console (if not, try
reloading the page with the developer tools open still).

This issue is causing my own JavaScript code to not run (as it is
inserted before the end of the  tag).

Thanks in advance for the eventual fix.

Kind regards,
Sebastian Berntsson

Emacs : GNU Emacs 27.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 
3.24.28, cairo version 1.16.0)

of 2021-04-26
Package: Org mode version 9.4.5 (9.4.5-73-g4c7696-elpaplus @ 
/home/sebbe/.emacs.d/elpa/develop/org-plus-contrib-20210503/)