Documentation: fix header markup
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
@@ -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
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.
Signed-off-by Xue Fuqiao <[email protected]>---
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@@ -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
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
@@ -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
@@ -1,5 +1,5 @@ git-remote(1) -============ +============= NAME ----
Documentation/git-upload-archive.txt +1 -1
@@ -1,5 +1,5 @@ git-upload-archive(1) -==================== +===================== NAME ----
Documentation/giteveryday.txt +1 -1
@@ -1,5 +1,5 @@ giteveryday(7) -=============== +============== NAME ----
Documentation/gitrevisions.txt +1 -1
@@ -1,5 +1,5 @@ gitrevisions(7) -================ +=============== NAME ----
Documentation/urls-remotes.txt +1 -1
@@ -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