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

Re: groff .ft command use in asciidoc

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Nov 17, 2010, 10:15 UTC
Message-ID
<20101117101516.GA12416@burratino>
In-Reply-To
<20101117095233.GA23817@basil.fritz.box>
Hi,
Andi Kleen wrote:
Show 12 quoted lines
> The git manpages on my opensuse 11.3 (git 1.7.1-1.14)
> frequently use the .ft command the opensuse groff does not 
> render.
> 
> For example from the final output of "man git-commit":
> 
>            .ft C
>            $ edit hello.c
>            $ git rm goodbye.c
>            $ git add hello.c
>            $ git commit
>            .ft

This is in my opinion a bug: unless you use ASCIIDOC_NO_ROFF, git's asciidoc.conf will include raw roff directives in the docbook markup it generates. And then docbook will escape the periods, producing the output you see.

The workaround is very simple: set ASCIIDOC_NO_ROFF to nonempty when you build documentation.

I think the only reason this is not the default is that no one has tested it with old DocBook XSL versions, but I'm not sure. Documentation/Makefile has some notes about this.

Hope that helps, Jonathan

Previous: Andi KleenNext: Andi Kleen
Message 2 of 16 in “groff .ft command use in asciidoc”
  1. Andi KleenNov 17, 2010
  2. Jonathan NiederNov 17, 2010
  3. Andi KleenNov 17, 2010
  4. Jeff KingNov 17, 2010
  5. Andi KleenNov 17, 2010
  6. Jeff KingNov 19, 2010
  7. Jonathan NiederNov 19, 2010
  8. Jeff KingNov 19, 2010
  9. Drew NorthupNov 19, 2010
  10. Jeff KingNov 19, 2010
  11. Drew NorthupNov 19, 2010
  12. Junio C HamanoNov 19, 2010
  13. Todd ZullingerNov 20, 2010
  14. Alejandro Riveira FernándezNov 18, 2010
  15. Drew NorthupNov 18, 2010
  16. Alejandro Riveira FernándezNov 18, 2010

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.