From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GNBrC/IulWBQSQEAgWs5BA (envelope-from ) for ; Fri, 07 May 2021 14:13:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +LATB/IulWDEfwAAB5/wlQ (envelope-from ) for ; Fri, 07 May 2021 12:13:38 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 941C11A7AD for ; Fri, 7 May 2021 14:13:37 +0200 (CEST) Received: from localhost ([::1]:58348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lezMN-0005W8-Im for larch@yhetil.org; Fri, 07 May 2021 08:13:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lewjj-00010G-Is for emacs-orgmode@gnu.org; Fri, 07 May 2021 05:25:31 -0400 Received: from smtp1-1.ilait.se ([2a01:2b0:301d:99::58]:56798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lewjg-0003k2-OF for emacs-orgmode@gnu.org; Fri, 07 May 2021 05:25:31 -0400 Received: from [10.46.1.118] (gw-gbg.ilait.se [82.99.18.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sebastian@ilait.se) by smtp1-1.ilait.se (Postfix) with ESMTPSA id 4Fc4mf0BNfzyvs for ; Fri, 7 May 2021 09:25:22 +0000 (UTC) To: emacs-orgmode@gnu.org 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/)] From: Sebastian Berntsson Message-ID: <21ac82d9-91a5-fbdf-c22c-302f28d58ebe@ilait.se> 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Received-SPF: pass client-ip=2a01:2b0:301d:99::58; envelope-from=sebastian@ilait.se; helo=smtp1-1.ilait.se X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 07 May 2021 08:12:57 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620389617; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=k1aaxY6/hXFt8/SOlhQtIwKVXcXNhe60s13HcXWPk0U=; b=HcFfHN2U90BA0gbSHqF659gxB2TnE/t0VqzGWBnVkvK6L+Z44kTfTnzjnkFOOe4G2K0pat HBMthCDbW/e42MY9MMs5sWravGMfpSN+ZLrYlJskjZxpPo+jEUu3yLoR/xHEYGcxZjNCCC D6rTifrKfKGYM+eusOcvBi5LHipvMoNAJeQqNux8jponrtXTXbzbfScQJOA1n6y4Qevjfy SaYkwJg754JkyMjnIr/IPpUmfvWk1MVPJljAOLr+5u7tuWRyYZCAA5Kx4m84pvU64lhz6W MUf67BtYqr0lSLLswZaRWbz6ZqLQQEXDnzh56KBBILmhMFAueZU2UCkMB4ZDAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620389618; a=rsa-sha256; cv=none; b=PmuvmdgFUL20yghHPvJoRkJzV+w/dpkPaJFe6SSL/iXkewTiha3yc4hs4nO1e97+GxrVI/ VyR+TOoTI+t1VPTF/caKfSRTgFd2mhLjyamj63dvhUMSlHIJdYBfchNi2J4m/5kQ49jYfU +cz8GLA5Ye8hoNc1aZ9u86AYumQ3y2ECIu7gkRjXeQidirpMzXol/Eo4Z6RYMBjYcBpTgc aKx25IT1NPUaxfG63usCtvJdk+iSsDE5snu4GMtnaorZdpzbIPzh5Q6ppSExqNfvfg2B5G zVvE+Z2FOX8ocD/NwPNyD0kHzsby1yKns/OHsFZdgHwn/po2WRNwM44XaTbT7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=ilait.se (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.85 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=ilait.se (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 941C11A7AD X-Spam-Score: -0.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: B0IUEQ8XpjAQ 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/)