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

[PATCH 4/4] user-manual.txt: render ASCII art correctly under Asciidoctor

From
MÅMartin Ågren <martin.agren@gmail.com>
Date
Sep 22, 2019, 11:57 UTC
Message-ID
<774a3ee180401fb1074f07ae3ae3d55494646eb0.1569152396.git.martin.agren@gmail.com>
In-Reply-To
<cover.1569152396.git.martin.agren@gmail.com>

This commit is similar to 379805051d ("Documentation: render revisions correctly under Asciidoctor", 2018-05-06) and is a no-op with AsciiDoc.

When creating a literal block from an indented block without any sort of delimiters, Asciidoctor strips off all leading whitespace, resulting in a misrendered ASCII drawing. Use an explicit literal block to indicate to Asciidoctor that we want to keep the leading whitespace. Drop the common indentation for all lines to make this a no-op with AsciiDoc.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
---
 Documentation/user-manual.txt | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 919c214b71..06bd8994ee 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -1831,15 +1831,17 @@ pull from that repository.  So the flow of changes, in a situation
 where there is one other developer with a public repository, looks
 like this:
 
-                        you push
-  your personal repo ------------------> your public repo
-	^                                     |
-	|                                     |
-	| you pull                            | they pull
-	|                                     |
-	|                                     |
-        |               they push             V
-  their public repo <------------------- their repo
+....
+		      you push
+your personal repo ------------------> your public repo
+      ^                                     |
+      |                                     |
+      | you pull                            | they pull
+      |                                     |
+      |                                     |
+      |               they push             V
+their public repo <------------------- their repo
+....
 
 We explain how to do this in the following sections.
 
-- 
2.23.0
Previous: Martin Ågren
Message 5 of 5 in “fix user-manual with Asciidoctor”
  1. 0/4 fix user-manual with AsciidoctorMartin Ågren, Sep 22, 2019
  2. 1/4 user-manual.txt: add missing section labelMartin Ågren, Sep 22, 2019
  3. 2/4 user-manual.txt: change header notationMartin Ågren, Sep 22, 2019
  4. 3/4 asciidoctor-extensions.rb: handle "book" doctype in linkgitMartin Ågren, Sep 22, 2019
  5. 4/4 user-manual.txt: render ASCII art correctly under AsciidoctorMartin Ågren, Sep 22, 2019

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.