From: Junio C Hamano <gitster@pobox.com>
To: Dan McGee <dpmcgee@gmail.com>
Cc: srackham@methods.co.nz, Eric Hanchrow <offby1@blarg.net>,
Miklos Vajna <vmiklos@frugalware.org>,
git@vger.kernel.org, asciidoc-discuss@lists.metaperl.com
Subject: Re: [PATCH] Documentation: rename gitlink macro to linkgit
Date: Thu, 03 Jan 2008 13:01:10 -0800 [thread overview]
Message-ID: <7vejcypqsp.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <47767710.7040405@gmail.com> (Dan McGee's message of "Sat, 29 Dec 2007 10:34:24 -0600")
Dan McGee <dpmcgee@gmail.com> writes:
>>From 68bf426e810e732ff3f9f75ffcd69f777b538685 Mon Sep 17 00:00:00 2001
> From: Dan McGee <dpmcgee@gmail.com>
> Date: Sat, 29 Dec 2007 00:20:38 -0600
> Subject: [PATCH] Documentation: rename gitlink macro to linkgit
>
> Between AsciiDoc 8.2.2 and 8.2.3, the following change was made to the stock
> Asciidoc configuration:
>
> @@ -149,7 +153,10 @@
> # Inline macros.
> # Backslash prefix required for escape processing.
> # (?s) re flag for line spanning.
> -(?su)[\\]?(?P<name>\w(\w|-)*?):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=
> +
> +# Explicit so they can be nested.
> +(?su)[\\]?(?P<name>(http|https|ftp|file|mailto|callto|image|link)):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=
> +
> # Anchor: [[[id]]]. Bibliographic anchor.
> (?su)[\\]?\[\[\[(?P<attrlist>[\w][\w-]*?)\]\]\]=anchor3
> # Anchor: [[id,xreflabel]]
>
> This default regex now matches explicit values, and unfortunately in this
> case gitlink was being matched by just 'link', causing the wrong inline
> macro template to be applied. By renaming the macro, we can avoid being
> matched by the wrong regex.
What's already tagged, released to the wild and picked up by
distros cannot be taken back, so I'd most likely have to apply
your patch anyway, but I have to say I am not very amused. I'd
call this a regression on AsciiDoc's part.
I would have expected some courtesy to make sure that updates to
AsciiDoc would not to break existing users, especially the ones
that they use as the top advertising material in the "Projects
using AsciiDoc" list at http://www.methods.co.nz/asciidoc/ ;-)
Stuart, is there anything we can help you to set up some
automated tests to catch AsciiDoc regression, so we do not have
to suffer like this again?
next prev parent reply other threads:[~2008-01-03 21:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-28 23:49 generated HTML contains broken links Eric Hanchrow
2007-12-29 3:01 ` Dan McGee
2007-12-29 15:57 ` Miklos Vajna
2007-12-29 16:24 ` Dan McGee
2007-12-29 16:34 ` [PATCH] Documentation: rename gitlink macro to linkgit Dan McGee
2008-01-03 21:01 ` Junio C Hamano [this message]
2008-01-04 5:22 ` Yannick Gingras
2008-01-04 5:50 ` Junio C Hamano
2008-01-04 6:11 ` Yannick Gingras
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vejcypqsp.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=asciidoc-discuss@lists.metaperl.com \
--cc=dpmcgee@gmail.com \
--cc=git@vger.kernel.org \
--cc=offby1@blarg.net \
--cc=srackham@methods.co.nz \
--cc=vmiklos@frugalware.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.
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 NNTP newsgroup(s).