threads / patch / 13671

patchDocumentation: fix graph in git-rev-parse.txt

Subject: [PATCH] Documentation: fix graph in git-rev-parse.txt

## tl;dr

2 messages between May 26, 2008 and May 26, 2008. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Michele Ballabio· May 26, 2008, 13:24 UTC · lore

Preformatted html and man pages show a mangled graph, caused by a backslash.

Commit f1ec6b22a8c1ab1cca0f1875f85aea5d2434e5a6 fixed this same issue, but it seems that new versions of the Asciidoc toolchain changed their behaviour.

Signed-off-by: Michele Ballabio <barra_cuda@katamail.com>
---

This should fix the problem, but I can't test it because I have an old Asciidoc installation (works either way here).

 Documentation/git-rev-parse.txt |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
Show changes to Documentation/git-rev-parse.txt +3 −1
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
index 69599ff..82dab73 100644
--- a/Documentation/git-rev-parse.txt
+++ b/Documentation/git-rev-parse.txt
@@ -243,16 +243,18 @@ Here is an illustration, by Jon Loeliger.  Both commit nodes B
 and C are parents of commit node A.  Parent commits are ordered
 left-to-right.
 
+........................................
     G   H   I   J
      \ /     \ /
       D   E   F
-       \  |  / \ 
+       \  |  / \
         \ | /   |
          \|/    |
           B     C
            \   /
             \ /
              A
+........................................
 
     A =      = A^0
     B = A^   = A^1     = A~1
-- 
1.5.5.1
Junio C Hamano· May 26, 2008, 23:21 UTC · re: Michele Ballabio · lore

Re: [PATCH] Documentation: fix graph in git-rev-parse.txt

Michele Ballabio <barra_cuda@katamail.com> writes:
Show 12 quoted lines
> Preformatted html and man pages show a mangled graph, caused by a
> backslash.
>
> Commit f1ec6b22a8c1ab1cca0f1875f85aea5d2434e5a6 fixed this same issue,
> but it seems that new versions of the Asciidoc toolchain changed their
> behaviour.
>
> Signed-off-by: Michele Ballabio <barra_cuda@katamail.com>
> ---
>
> This should fix the problem, but I can't test it because I have an old
> Asciidoc installation (works either way here).

Thanks. I think you also should de-dent the whole picture to keep the same output, like this...

 Documentation/git-rev-parse.txt |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)
Show changes to Documentation/git-rev-parse.txt +12 −10
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
index 6513c2e..5981c79 100644
--- a/Documentation/git-rev-parse.txt
+++ b/Documentation/git-rev-parse.txt
@@ -238,16 +238,18 @@ Here is an illustration, by Jon Loeliger.  Both commit nodes B
 and C are parents of commit node A.  Parent commits are ordered
 left-to-right.
 
-    G   H   I   J
-     \ /     \ /
-      D   E   F
-       \  |  / \ 
-        \ | /   |
-         \|/    |
-          B     C
-           \   /
-            \ /
-             A
+........................................
+G   H   I   J
+ \ /     \ /
+  D   E   F
+   \  |  / \
+    \ | /   |
+     \|/    |
+      B     C
+       \   /
+        \ /
+         A
+........................................
 
     A =      = A^0
     B = A^   = A^1     = A~1

← back to recent threads