* [BUG] Texinfo: Commas in URL text are not escaped
@ 2024-10-09 10:43 8dcc
2024-10-19 8:33 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread
* Re: [BUG] Texinfo: Commas in URL text are not escaped
2024-10-09 10:43 [BUG] Texinfo: Commas in URL text are not escaped 8dcc
@ 2024-10-19 8:33 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-10-19 8:33 UTC (permalink / raw)
To: 8dcc; +Cc: emacs-orgmode
8dcc <8dcc.git@gmail.com> writes:
> 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.
Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=39264d3d41
Thanks for reporting!
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-19 8:31 UTC | newest]
Thread overview: 2+ messages (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
2024-10-19 8:33 ` Ihor Radchenko
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).