Thread (1 message) 1 message, 1 author, 2025-08-20

Re: [PATCH v2] doc: fix asciidoc format compatibility in pretty-formats.adoc

From: Junio C Hamano <hidden>
Date: 2025-08-20 21:03:10

Jean-Noël Avila [off-list ref] writes:
The change is needed because Asciidoc.py and Asciidoctor
do not process the '+' verbatim the same way. A span is
detected when the format sign (here '+')is preceded by a
non-word character. I haven't digged into the source,
but it seems that '{nbsp}' is considered a non-word sign
by Asciidoc.py, but not by Asciidoctor.

Using the double '+' opens 'unconstrained' span,
independent on the preceding character in both engines.
Thanks for explaining.  

It is especially nice to see "independent on the preceding character
in both engines", meaning that this fixes Asciidoctor while not
breaking Asciidoc ;-)

Now, can you do give the explanation in the proposed commit log
message, so that later people do not have to ask the same question
while reading "git log -p" output?

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help