emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug: Missing end parenthesis in JavaScript regarding HTML exports [9.4.5


From: Sebastian Berntsson
Subject: 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/)]
Date: Fri, 7 May 2021 11:24:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

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 <body> 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/)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]