Re: Documentation/user-manual.txt, asciidoc and "--" escapes

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Piotr Findeisen <piotr.findeisen@...>
Cc: <git@...>
Date: Sunday, November 9, 2008 - 2:52 pm

> On Fri, Nov 7, 2008 at 04:09, Piotr Findeisen <piotr.findeisen@gmail.com> wrote:

Hello,


Please read Documentation/SubmittingPatches for the preferred way to
contribute patches.


Newer asciidoc versions have the following "workaround". Maybe adding
something like this to Documentation/asciidoc.conf would be more
future proof.

# -- Spaced and unspaced em dashes (entity reference &mdash;)
# But disallow unspaced in man pages because double-dash option name prefixes
# are pervasive.
ifndef::doctype-manpage[]
(^|[^-\\])--($|[^-])=\1&#8212;\2
endif::doctype-manpage[]
ifdef::doctype-manpage[]
(^|\s*[^\S\\])--($|\s+)=\1&#8212;\2
endif::doctype-manpage[]
\\--(?!-)=--

-- 
Jonas Fonseca
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Documentation/user-manual.txt, asciidoc and "--" escapes, Jonas Fonseca, (Sun Nov 9, 2:52 pm)
Re: Documentation/user-manual.txt, asciidoc and "--" escapes, Piotr Findeisen, (Mon Nov 10, 3:38 am)
Re: Documentation/user-manual.txt, asciidoc and "--" escapes, Piotr Findeisen, (Mon Nov 10, 6:14 am)
Re: Documentation/user-manual.txt, asciidoc and "--" escapes, Piotr Findeisen, (Fri Nov 14, 9:02 am)