git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 3/3] doc: git-config: escape erroneous highlight markup

From
Jeff King <peff@peff.net>
Date
Jun 12, 2026, 06:17 UTC
Message-ID
<20260612061712.GA675816@coredump.intra.peff.net>
In-Reply-To
<20260612051605.GB593075@coredump.intra.peff.net>
On Fri, Jun 12, 2026 at 01:16:06AM -0400, Jeff King wrote:
Show 8 quoted lines
> So...weird. groff wants to add extra space for some reason. It happens
> even if I drop the bolding, and just have "#" on a line by itself. I
> guess maybe it is the trailing "." of the previous line putting groff
> into "oh, I'm starting a new sentence" mode and it uses two spaces.
> 
> But I think that is all outside the scope of your fix, and this is an
> existing issue that we are now just unlucky enough to hit. I'd be
> tempted to ignore it and possibly fix it later.
Poking at the groff manpage for possible fixes, I think it is either:
  1. Just turn off extra spaces between sentences, like this:
       .ss 12 0
     The first argument "12" is "the minimum word space is 12/12ths of
     the current font's word space. The second is "also add 0/12ths
     between sentences" (so, no extra space).
     That prevents the problem from happening anywhere, but maybe people
     really like the extra spaces in other contexts.
  2. There are some magic characters marked as "this doesn't start a new
     sentence". We can set that flag for "#" like this:
       .cflags 32 \#

I don't think docbook has parameter support for either of those, so we'd have to do some kind of "shove this into the header" magic, which is a bit gross.

-Peff
Previous: Jeff KingNext: Junio C Hamano
Message 27 of 30 in “doc: config/sideband: fix typo in adoc markup”
  1. 2/3 doc: config/sideband: fix typo in adoc markupTuomas Ahola, Jun 10, 2026
  2. 3/3 doc: git-config: escape erroneous adoc markupTuomas Ahola, Jun 10, 2026
  3. 0/3 doc: config: fix AsciiDoc glitchesTuomas Ahola, Jun 10, 2026
  4. 1/3 doc: config: terminate runaway listsTuomas Ahola, Jun 10, 2026
  5. Junio C HamanoJun 10, 2026
  6. Junio C HamanoJun 10, 2026
  7. Kristoffer HaugsbakkJun 10, 2026
  8. 1/3 doc: config: terminate runaway listsTuomas Ahola, Jun 10, 2026
  9. 2/3 doc: config/sideband: fix description list delimiterTuomas Ahola, Jun 10, 2026
  10. 3/3 doc: git-config: escape erroneous highlight markupTuomas Ahola, Jun 10, 2026
  11. 0/3 doc: config: fix AsciiDoc glitchesTuomas Ahola, Jun 10, 2026
  12. Jeff KingJun 11, 2026
  13. Jeff KingJun 11, 2026
  14. Jeff KingJun 11, 2026
  15. Jeff KingJun 11, 2026
  16. Tuomas AholaJun 11, 2026
  17. Jeff KingJun 11, 2026
  18. Tuomas AholaJun 11, 2026
  19. 3/3 doc: git-config: escape erroneous highlight markupTuomas Ahola, Jun 11, 2026
  20. 1/3 doc: config: terminate runaway listsTuomas Ahola, Jun 11, 2026
  21. 0/3 doc: config: fix AsciiDoc glitchesTuomas Ahola, Jun 11, 2026
  22. 2/3 doc: config/sideband: fix description list delimiterTuomas Ahola, Jun 11, 2026
  23. Junio C HamanoJun 11, 2026
  24. Jean-Noël AVILAJun 11, 2026
  25. Jeff KingJun 12, 2026
  26. Jeff KingJun 12, 2026
  27. Jeff KingJun 12, 2026
  28. Junio C HamanoJun 12, 2026
  29. Junio C HamanoJun 12, 2026
  30. Junio C HamanoJun 12, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.