emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: 8dcc <8dcc.git@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] Texinfo: Commas in URL text are not escaped
Date: Wed, 09 Oct 2024 12:43:34 +0200	[thread overview]
Message-ID: <87set58skp.fsf@gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 522 bytes --]

Hello,

The following Org file:

  [[https://example.com][Foo]]

  [[https://example.com][Foo, Bar]]

When exported to Texinfo using `org-texinfo-export-to-texinfo',
generates the following file:

  ...
  @uref{https://example.com, Foo}

  @uref{https://example.com, Foo, Bar}
  ...

The comma on the text of the second URL is being interpreted by Texinfo
as an argument separator, which in the case of `@uref', only the third
argument is displayed, hiding the second argument and the actual URL
when exporting the file.


[-- Attachment #1.2: PDF screenshot (Error) --]
[-- Type: image/png, Size: 6118 bytes --]

[-- Attachment #1.3: Type: text/plain, Size: 215 bytes --]


Therefore, it should be escaped to `@comma{}', according to the Texinfo
manual[1]:

  ...
  @uref{https://example.com, Foo}

  @uref{https://example.com, Foo@comma{} Bar}
  ...

This produces the expected output.


[-- Attachment #1.4: PDF screenshot (Corrected) --]
[-- Type: image/png, Size: 9260 bytes --]

[-- Attachment #1.5: Type: text/plain, Size: 141 bytes --]


[1] Section 11.1.3, Inserting `,' with `@comma{}'.
    https://www.gnu.org/software/texinfo/manual/texinfo/html_node/Inserting-a-Comma.html

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 255 bytes --]

             reply	other threads:[~2024-10-09 10:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-09 10:43 8dcc [this message]
2024-10-19  8:33 ` [BUG] Texinfo: Commas in URL text are not escaped Ihor Radchenko
2024-10-27 22:31   ` Jonas Bernoulli
2024-10-28 19:06     ` Ihor Radchenko

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=87set58skp.fsf@gmail.com \
    --to=8dcc.git@gmail.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).