From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 6NBQKGfYXWYgDgAAA41jLg (envelope-from ) for ; Mon, 03 Jun 2024 16:51:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sLqPI2fYXWbIEAEA62LTzQ (envelope-from ) for ; Mon, 03 Jun 2024 16:51:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YX7534rh; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717426279; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XNPIxCno/Ewy3CGBvwcOzBKh6hqbkSrGd5sn3IuTd/E=; b=EJvyaqT3a5M1O3/gtbPA50DDRdSXhC72+eSEE+k4u4CwtLXOSVdpaCDeJ0S5FlWUp4dB/y RjX4bTjV1Qar/HiOff+dJW19/qsZbI7YHUSmEUesHnOYTwUXMfq6/1ojoZ/7/BTXvJd1eO I/nckl2+Jj4oMJAHaphPCNF0dOSFv8r85nkNyy7eeS1l67nNE485w6/RSp1raOvaifn4L9 rOs9tSLmmcWD5scU1hSgjoLWeP/iD9auIypcslF58AfIghItMG9+RS9acYQBaw1VHeEcrp G0p5E+2ERQUTVZBlaq7W2SEJRtwIkJhD+LjzZj/TxgMU88Z+Se/451ANaSMoPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YX7534rh; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717426279; a=rsa-sha256; cv=none; b=VtPk6M7gq2PKk6KVUNXYMSd9Q/Tvks+iRikbxRxGxofsBi/fXLn1VABegXk+p09d1RLZkz pLb/ozt7vLUe/Bfb3pN472RJWIhLd9/OZfqYRhYxSb1AI8lWiouh95fkveWIs12pKlAOTF 5KhJs1STrCrbVow9dMJePUlHcU74/F4cvvawyymeb6ru68zSq1De4J4j0OPDOj69WZC7Qm cMQHLRyXK9nWAp/tnWoey4imU7LznIN2fHqvcb63k/WOL8IPwbK4CY4024qOrwQRrQbu6O mOawCs2YwIAsmmJ0lfyIACZbLJImEAm/WwXLJYrC4JQLztJvEhKJJ2LClvGzYg== 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 0D26E6F157 for ; Mon, 3 Jun 2024 16:51:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sE91C-00006c-1t; Mon, 03 Jun 2024 10:50:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sE919-0008TS-KS for emacs-orgmode@gnu.org; Mon, 03 Jun 2024 10:50:35 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sE917-0000ds-AM for emacs-orgmode@gnu.org; Mon, 03 Jun 2024 10:50:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0EA0C240029 for ; Mon, 3 Jun 2024 16:50:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1717426231; bh=xcb/Rjf7b+aNdiG8VVNXDxnKY+b1N7FWxEUhFqhT8D0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=YX7534rhcSVgxzT1VoiLACy5uYnaij8z0lKkoYKiEPgkB2Q6B6zhb68rCDpmrNvoI cGmBcu6Ac7Vm9hx9ea0T4xuY5U6d3Dm09j6RlCPiydE9ZTLjQ2ne2kmyjDvrdMDMfe aWPOd8RRg1uYIKVnUh/clEdcR5QNw8Y6RTxxXC0RU9uLAjAgWIpwYQfEpt5p8P/LAn gzApobfJvZsS+FCoGhp53v77hgimkB9fx82bKEdnZKW9jYrEXkf97BUQ+9YPtXCawh H85zp3gi3Pg38ajx4OHRa1Vo5oeEGjlPO0PTWHbbesqPwzDJifVN63EqIgn2zyVxPy 9rYOoZrcxJQrQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VtGqV33Zkz6tmv; Mon, 3 Jun 2024 16:50:30 +0200 (CEST) From: Ihor Radchenko To: Felix Esser Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Folding bug using org-info.js with numbered sections [9.6.15 (release_9.6.15 @ /snap/emacs/current/usr/share/emacs/29.3/lisp/org/)] In-Reply-To: <871q5hc3bt.fsf@mailbox.org> References: <871q5hc3bt.fsf@mailbox.org> Date: Mon, 03 Jun 2024 14:52:14 +0000 Message-ID: <877cf6nko1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.56 X-Migadu-Queue-Id: 0D26E6F157 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.56 X-TUID: B9plxrr6WPZI Felix Esser writes: > I want to export an org file to HTML and include the org-info.js for > the possibility of folding headings in the outputted HTML > file. However, using numbered sections breaks this behavior. This > problem has been addressed before but without a solution and without > referring to numbered sections > (). > > > Here is the minimal content of an org-file producing the problem using `emacs -Q'. > > ,---- > | #+TITLE: Without Title there is Another Problem > | #+OPTIONS: num:t > | #+INFOJS_OPT: view:overview > | > | * First Headline > | > | This wants to be folded in HTML but it doesn't work > | > | * Second Headline > | > | Same here. > `---- > In the produced HTML file it is possible to fold the table of contents (either by clicking on it or by pressing f). However, it is not possible to fold the section headings. This bug happens with the original org-info.js () as well as with the org-info-src.js script (). Confirmed. > In order to use org-info.js when exporting with numbered sections, I found a working solution with the following patch applied to `ox-html.el': Thanks, but this is not a good solution. We should fix org-info.js itself rather than trying to patch ox-html. Unfortunately, org-info.js does not have a maintainer (and I am not familiar with JS). So, we cannot offer much help here. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at