emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Philip Hudson <phil.hudson@iname.com>
To: emacs orgmode-mailinglist <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <CAJ1MqVGM_n3D4KfXRj798UORPUMf3mhfHRZ-88G2rsGssNmJkA@mail.gmail.com> (raw)
In-Reply-To: <871s7qlsw6.fsf@gnu.org>

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 <bzg@gnu.org>
Date: Mon, 12 Nov 2018 at 06:19
Subject: Re: Worg commit privs
To: Philip Hudson <phil.hudson@iname.com>


Hi Philip,

Philip Hudson <phil.hudson@iname.com> 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

  parent reply	other threads:[~2018-11-12 10:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-07  6:26 org-mode team on gratipay Bastien Guerry
     [not found] ` <CAJ1MqVEKay8ovVvPW86uvtqJtV56wS+fZYNu0ADNj8N2=ODXPw@mail.gmail.com>
     [not found]   ` <87a8cywq51.fsf@bzg.fr>
     [not found]     ` <CAJ1MqVEY3=uEQej_pXtmDvwTVVPv3Cm0Ug9+gHrbttiNY8tsjA@mail.gmail.com>
     [not found]       ` <87twb6torp.fsf@bzg.fr>
     [not found]         ` <CAJ1MqVFmqEkWHffD1cbiRa0RsJbHAMWkbxuDYgW1=N1dUNvd1Q@mail.gmail.com>
     [not found]           ` <87mvgycpmz.fsf@bzg.fr>
     [not found]             ` <CAJ1MqVEFmj9YKkqW-bk89apJG_MWfr=Mm5LjqeE2YROEYWP08Q@mail.gmail.com>
     [not found]               ` <87woplxi1w.fsf@gnu.org>
     [not found]                 ` <CAJ1MqVFnXq9ppNAr9tBZO81GgxGtOp=pNiwBo5kPXJW6v1tehA@mail.gmail.com>
     [not found]                   ` <87y3a13pf8.fsf@gnu.org>
     [not found]                     ` <CAJ1MqVFOT_LSLgM617vpMKR-1G++z16nt=SUHa-nOgM1UsJ3=g@mail.gmail.com>
     [not found]                       ` <87efbskqlc.fsf@gnu.org>
     [not found]                         ` <CAJ1MqVHiR3ZpuX3TW0iQ6c9j_VjKs1BVbE0223XPT-pqN02UDw@mail.gmail.com>
     [not found]                           ` <CAJ1MqVGS6RSZOWqkPXA=aqJg84wYaSLMK7BnFvx_=_DXnSu0Kg@mail.gmail.com>
     [not found]                             ` <871s7qlsw6.fsf@gnu.org>
2018-11-12 10:49                               ` Philip Hudson [this message]
2018-11-13 10:15                                 ` 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/)] Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ1MqVGM_n3D4KfXRj798UORPUMf3mhfHRZ-88G2rsGssNmJkA@mail.gmail.com \
    --to=phil.hudson@iname.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).