[PATCH v2] doc: fix asciidoc format compatibility in pretty-formats.adoc
- From
Jean-Noël Avila <jn.avila@free.fr>
- Date
- Aug 20, 2025, 20:26 UTC
- Message-ID
- <20250820203722.31268-1-jn.avila@free.fr>
- In-Reply-To
- <xmqqa53vc77z.fsf@gitster.g>
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.