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

Re: Formatting error in page http://git-scm.com/docs/user-manual

From
John Keeping <john@keeping.me.uk>
Date
Sep 25, 2015, 12:59 UTC
Message-ID
<20150925125935.GN17201@serenity.lan>
In-Reply-To
<CAOq7JjbYP=fGB0aqbrMz_ibfWHor-v-Y-BsO316H4dHpfSYS-w@mail.gmail.com>
On Fri, Sep 25, 2015 at 03:38:02PM +0300, Valentin VALCIU wrote:
Show 7 quoted lines
> There is a formatting error in the source code of page
> http://git-scm.com/docs/user-manual that makes almost half of it be
> rendered in a <pre> element displaying the page source in the original
> markup language instead of being converted to HTML.
> 
> The issue is in the paragraph that stars with "The index is a binary
> file (generally kept in `.git/index`)..."

It looks like the header underline isn't quite accurate enough to keep Asciidoctor happy. The patch below should fix it.

-- >8 --
Subject: [PATCH] Documentation/user-manual: fix header underline

Asciidoctor is stricter than AsciiDoc when deciding if underlining is a section title or the start of preformatted text. Make the length of the underlining match the text to ensure that it renders correctly in all implementations.

Signed-off-by: John Keeping <john@keeping.me.uk>
---
 Documentation/user-manual.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 68978f5..1b7987e 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -3424,7 +3424,7 @@ just missing one particular blob version.
 
 [[the-index]]
 The index
------------
+---------
 
 The index is a binary file (generally kept in `.git/index`) containing a
 sorted list of path names, each with permissions and the SHA-1 of a blob
-- 
2.6.0.rc2.198.g81437b7
Previous: Valentin VALCIUNext: Michael J Gruber
Message 2 of 3 in “Formatting error in page http://git-scm.com/docs/user-manual”
  1. Valentin VALCIUSep 25, 2015
  2. John KeepingSep 25, 2015
  3. Michael J GruberSep 25, 2015

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.