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

Re: [PATCH] asciidoc: add minor workaround to add an empty line after code blocks

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Oct 30, 2008, 12:56 UTC
Message-ID
<8763nautqo.fsf@iki.fi>
In-Reply-To
<20081030104503.GA17131@diku.dk>
Jonas Fonseca (2008-10-30 11:45 +0100) wrote:
> Insert an empty <simpara> in manpages after code blocks to force and
> empty line.
Show 5 quoted lines
>  This is an old issue reported by Theodore Ts'o and fixed partially in
>  commit 63c97ce228f2d2697a8ed954a9592dfb5f286338 for the URL section
>  of the fetch/pull/push manpages. I have fixed this in tig using an
>  approach similar to the attached. Simple and clean, but only tested
>  with docbook-xsl version 1.72 so I have made it conditional.

Thanks. Your patch seems to work and code blocks look much nicer now. I tested command-line "man" as well as Emacs' "M-x man" and "M-x woman". I'm using docbook-xsl Debian package version 1.73.2.dfsg.1-4.

Another kind of formatting issue exists with some other example commands, like in "git rebase" manpage, for example. Not that I care that much, but here's an example. The asciidoc source (git-rebase.txt) contains:

    then the command
        git rebase --onto topicA~5 topicA~3 topicA
    would result in the removal of commits F and G:
In final manpage output it looks like this:
    then the command                               
        git rebase --onto topicA~5 topicA~3 topicA 
    would result in the removal of commits F and G:
Previous: Jonas FonsecaNext: Junio C Hamano
Message 5 of 12 in “A typesetting problem with git man pages”
  1. Teemu LikonenOct 29, 2008
  2. Jonas FonsecaOct 29, 2008
  3. Teemu LikonenOct 29, 2008
  4. asciidoc: add minor workaround to add an empty line after code blocksJonas Fonseca, Oct 30, 2008
  5. Teemu LikonenOct 30, 2008
  6. Junio C HamanoNov 1, 2008
  7. Thomas AdamNov 1, 2008
  8. Kalle Olavi NiemitaloNov 3, 2008
  9. Teemu LikonenOct 31, 2008
  10. Teemu LikonenOct 31, 2008
  11. Jeff KingOct 29, 2008
  12. Jonas FonsecaOct 29, 2008

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.