Skip to contentSkip to conversation

Documentation: fix header markup

PATCH In review Xue Fuqiao 2 participants 3 messages Jun 15, 2016 Documentation

lore
Share & tools
lore

Xue Fuqiao

author
#0 lore raw

PATCH 1/1 Documentation: fix header markup

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.

---
Currently, "Fixing a mistake by rewriting history" is surrounded by a pair of <p> tags instead of a pair of <h3> tags in
https://git-scm.com/docs/user-manual.html. This patch will (hopefully) fix that.

 Documentation/user-manual.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/user-manual.txt +1 -1
index 1b7987e..764a270 100644
@@ -1491,7 +1491,7 @@ resolving a merge>>.
 
 [[fixing-a-mistake-by-rewriting-history]]
 Fixing a mistake by rewriting history
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 If the problematic commit is the most recent commit, and you have not
 yet made that commit public, then you may just
Signature · 1 line
2.6.2
#1 lore raw
Quoted 7 lines · Xue Fuqiao

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.

---

Looks obviously correct. Will queue.

Thanks.

Quoted 21 lines

Currently, "Fixing a mistake by rewriting history" is surrounded by a pair of <p> tags instead of a pair of <h3> tags in
https://git-scm.com/docs/user-manual.html. This patch will (hopefully) fix that.

 Documentation/user-manual.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/user-manual.txt +1 -1
index 1b7987e..764a270 100644
@@ -1491,7 +1491,7 @@ resolving a merge>>.
 
 [[fixing-a-mistake-by-rewriting-history]]
 Fixing a mistake by rewriting history
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 If the problematic commit is the most recent commit, and you have not
 yet made that commit public, then you may just
#2 lore raw

PATCH 1/1 Match underline with the text

Even though AsciiDoc is more lenient when deciding if an underline is for the contents on the previous line to find section headers, we should match the length of them for other formatters to help them.

---

* A few more instances I found.

 Documentation/git-bisect.txt         | 2 +-
 Documentation/git-remote.txt         | 2 +-
 Documentation/git-upload-archive.txt | 2 +-
 Documentation/giteveryday.txt        | 2 +-
 Documentation/gitrevisions.txt       | 2 +-
 Documentation/urls-remotes.txt       | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
Documentation/git-bisect.txt +1 -1
index 2044fe6..51cacd7 100644
@@ -256,7 +256,7 @@ Then compile and test the chosen revision, and afterwards mark
 the revision as good or bad in the usual manner.
 
 Bisect skip
-~~~~~~~~~~~~
+~~~~~~~~~~~
 
 Instead of choosing a nearby commit by yourself, you can ask Git to do
 it for you by issuing the command:
Documentation/git-remote.txt +1 -1
index 3c9bf45..1d7ecea 100644
@@ -1,5 +1,5 @@
 git-remote(1)
-============
+=============
 
 NAME
 ----
Documentation/git-upload-archive.txt +1 -1
index cbef61b..fba0f1c 100644
@@ -1,5 +1,5 @@
 git-upload-archive(1)
-====================
+=====================
 
 NAME
 ----
Documentation/giteveryday.txt +1 -1
index 7be6e64..35473ad 100644
@@ -1,5 +1,5 @@
 giteveryday(7)
-===============
+==============
 
 NAME
 ----
Documentation/gitrevisions.txt +1 -1
index c0ed6d1..e903eb7 100644
@@ -1,5 +1,5 @@
 gitrevisions(7)
-================
+===============
 
 NAME
 ----
Documentation/urls-remotes.txt +1 -1
index 282758e..bd184cd 100644
@@ -36,7 +36,7 @@ The `<pushurl>` is used for pushes only. It is optional and defaults
 to `<url>`.
 
 Named file in `$GIT_DIR/remotes`
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 You can choose to provide the name of a
 file in `$GIT_DIR/remotes`.  The URL