From: Kristoffer Haugsbakk Date: Fri, 04 Jul 2025 20:43:03 GMT Subject: Re: [PATCH 7/9] doc: git-log: convert pretty formats to new doc format Message-ID: In-Reply-To: On Sun, Jun 8, 2025, at 11:09, Jean-Noël Avila via GitGitGadget wrote: > From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= > > - Use __ instead of in the description > - Use `backticks` for keywords and more complex option > descriptions. The new rendering engine will apply synopsis rules to > these spans. > > For all the formats in the form of %(foo), the formatting needs to be > heavier because we not want the parentheses to be rendered as syntax > elements,but as keywords, i.e. we need to circumvent the syntax highlighting nit: s/elements,but/elements, but/ > -** 'prefix=': Shown before the list of ref names. Defaults to > "{nbsp}`(`". > -** 'suffix=': Shown after the list of ref names. Defaults to > "`)`". > -** 'separator=': Shown between ref names. Defaults to > "`,`{nbsp}". > -** 'pointer=': Shown between HEAD and the branch it points to, > if any. > - Defaults to "{nbsp}`->`{nbsp}". > -** 'tag=': Shown before tag names. Defaults to "`tag:`{nbsp}". > +** `prefix=`: Shown before the list of ref names. Defaults to > "{nbsp}+(+". > +** `suffix=`: Shown after the list of ref names. Defaults to > "+)+". > +** `separator=`: Shown between ref names. Defaults to > "+,+{nbsp}". > +** `pointer=`: Shown between HEAD and the branch it points to, > if any. > + Defaults to "{nbsp}+->+{nbsp}". `+->+` gets rendered as `+→+` in the HTMl output. `Documentation/doc-diff` shows the same. Has using `␣` to denote SP in verbatim code blocks been considered by anyone? > +** `tag=`: Shown before tag names. Defaults to "`tag:`{nbsp}". > > + > For example, to produce decorations with no wrapping > or tag annotations, and spaces as separators: > + > -`%(decorate:prefix=,suffix=,tag=,separator= )` > +++%(decorate:prefix=,suffix=,tag=,separator= )++