* [BUG] Texinfo: Commas in URL text are not escaped
@ 2024-10-09 10:43 8dcc
0 siblings, 0 replies; only message in thread
From: 8dcc @ 2024-10-09 10:43 UTC (permalink / raw)
To: emacs-orgmode
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-10-09 10:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-09 10:43 [BUG] Texinfo: Commas in URL text are not escaped 8dcc
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).