emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ox-ascii.el: Consistently add brackets around links (was: Re: [R


From: Max Nikulin
Subject: [PATCH] ox-ascii.el: Consistently add brackets around links (was: Re: [RFC][PATCH] Allow to export to ascii custom link types as notes)
Date: Tue, 24 Oct 2023 22:06:05 +0700
User-agent: Mozilla Thunderbird

On 24/10/2023 17:40, Ihor Radchenko wrote:
Max Nikulin writes:
         [Org mode] (<http://orgmode.org>)
man
         man (http://man.he.net/?topic=man&section=all)
[...]
Should be [man] (<http://man.he.net/?topic=man&section=all>)

Side note: it should be either just "man(1)" or "man(8)" without any URL for plain text export, but it is another story.

internal
         heading (See section 1)
[...]
Hmm.. I do see a problem now. To be consistent, it should be

[heading] (See section 1)

See the attached patch.

After:

--- 8< ---
web
      [Org mode] (<http://orgmode.org>)
man
      [man] (<http://man.he.net/?topic=man&section=all>)
internal
      [heading] (See section 1)


1 Heading
═════════
--- >8 ---

Before:

--- 8< ---
web
      [Org mode] (<http://orgmode.org>)
man
      man (http://man.he.net/?topic=man&section=all)
internal
      heading (See section 1)


1 Heading
═════════
--- >8 ---

I would consider

--- 8< ---
web
      Org mode <http://orgmode.org>
man
      man <http://man.he.net/?topic=man&section=all>
internal
      heading (See section 1)


1 Heading
═════════
--- >8 ---

but inconsistency is worse anyway.

Attachment: 0001-ox-ascii.el-Consistently-add-brackets-around-links.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]