From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philip Hudson Subject: Bug: "file:" protocol link with "#anchor" bad HTML export [9.1.14 (9.1.14-1-g4931fc-elpa @ /home/phil/.emacs.d/elpa/org-9.1.14/)] Date: Mon, 12 Nov 2018 10:49:27 +0000 Message-ID: References: <87y40vkdph.fsf@bzg.fr> <87a8cywq51.fsf@bzg.fr> <87twb6torp.fsf@bzg.fr> <87mvgycpmz.fsf@bzg.fr> <87woplxi1w.fsf@gnu.org> <87y3a13pf8.fsf@gnu.org> <87efbskqlc.fsf@gnu.org> <871s7qlsw6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gM9n0-0007mS-Gh for emacs-orgmode@gnu.org; Mon, 12 Nov 2018 05:49:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gM9mw-0001Z9-D8 for emacs-orgmode@gnu.org; Mon, 12 Nov 2018 05:49:54 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38796) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gM9mw-0001OC-5A for emacs-orgmode@gnu.org; Mon, 12 Nov 2018 05:49:50 -0500 Received: by mail-pf1-f194.google.com with SMTP id v76-v6so1324893pfa.5 for ; Mon, 12 Nov 2018 02:49:42 -0800 (PST) In-Reply-To: <871s7qlsw6.fsf@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs orgmode-mailinglist Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ I add into Worg file "worg-faq.org" a hyperlink using the "file:" protocol, linking to a sub-heading in Worg file "worg-git.org". Exact syntax quoted below, from an email thread with Bastien. Expected behavior: I expect the HTML exporter automatically used by Worg to generate an "https:" protocol hyperlink which links to a specific, existing HTML anchor ID in file "worg-git.html". Actual behavior: The exporter generates an "https:" protocol hyperlink that points to a non-existent anchor ID in file "worg-git.html". I have left the mis-generated link in place on Worg for the time being. (My previous push included a correct, explicit "https:" protocol link; I can revert and push again at any time). You can examine it at: https://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development at the bottom of list item 2. See below for the exact syntax of the Org link. Emacs : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) of 2017-09-12 on hullmann, modified by Debian Package: Org mode version 9.1.14 (9.1.14-1-g4931fc-elpa @ /home/phil/.emacs.d/elpa/org-9.1.14/) ---------- Forwarded message --------- From: Bastien Date: Mon, 12 Nov 2018 at 06:19 Subject: Re: Worg commit privs To: Philip Hudson Hi Philip, Philip Hudson writes: > Doesn't look right. The generated link points to a non-existent id: > > https://orgmode.org/worg/worg-git.html#org2c2081f > > This is the link in the Org source, created using "C-c l" followed by "C-c C-l": > > file:worg-git.org::*The%20first%20time%20you%20contribute%20to%20Worg It looks like a bug. The section has a CUSTOM_ID property, and the value of this property is used as the HTML anchor, but the stored link uses another method when exporting to HTML, hence the bug. Could you report it to the mailing list? Don't forget to mention your Org version and a minimal recipe on how to reproduce the bug. It is important enough to block the release of Org 9.2. I won't have time to look at it before nov. 19th, though. I hope Nicolas or someone else can have a look. Thanks! -- Bastien -- Phil Hudson http://hudson-it.ddns.net Pretty Good Privacy (PGP) ID: 0x4E482F85