* git-log man2html conversion broken: http://git-scm.com/docs/git-log @ 2014-10-08 17:49 Derek Moore 2014-10-08 20:46 ` [PATCH] Documentation: fix misrender of pretty-formats in Asciidoctor brian m. carlson 2014-10-09 2:29 ` git-log man2html conversion broken: http://git-scm.com/docs/git-log Jeff King 0 siblings, 2 replies; 6+ messages in thread From: Derek Moore @ 2014-10-08 17:49 UTC (permalink / raw) To: git The HTML for the git-log man page is being misrendered on the official site. See the placehoders list under "format:<string>" in the PRETTY FORMATS section. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] Documentation: fix misrender of pretty-formats in Asciidoctor 2014-10-08 17:49 git-log man2html conversion broken: http://git-scm.com/docs/git-log Derek Moore @ 2014-10-08 20:46 ` brian m. carlson 2014-10-08 20:53 ` Junio C Hamano 2014-10-09 2:31 ` Jeff King 2014-10-09 2:29 ` git-log man2html conversion broken: http://git-scm.com/docs/git-log Jeff King 1 sibling, 2 replies; 6+ messages in thread From: brian m. carlson @ 2014-10-08 20:46 UTC (permalink / raw) To: git; +Cc: Junio C Hamano, Derek Moore Neither the AsciiDoc nor the Asciidoctor documentation specify whether the same number of delimiter characters must be used to end a block as to begin it, although both sets of documentation show exactly matching pairs. AsciiDoc allows mismatches, but AsciiDoctor apparently does not. Adjust the pretty formats documentation to use matching pairs to prevent a misrendering where the remainder of the document was rendered as a listing block. Signed-off-by: brian m. carlson <sandals@crustytoothpaste•net> --- Documentation/pretty-formats.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt index eecc39d..dcf7429 100644 --- a/Documentation/pretty-formats.txt +++ b/Documentation/pretty-formats.txt @@ -95,7 +95,7 @@ would show something like this: The author of fe6e0ee was Junio C Hamano, 23 hours ago The title was >>t4119: test autocomputing -p<n> for traditional diff input.<< --------- +------- + The placeholders are: -- 2.1.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] Documentation: fix misrender of pretty-formats in Asciidoctor 2014-10-08 20:46 ` [PATCH] Documentation: fix misrender of pretty-formats in Asciidoctor brian m. carlson @ 2014-10-08 20:53 ` Junio C Hamano 2014-10-09 2:31 ` Jeff King 1 sibling, 0 replies; 6+ messages in thread From: Junio C Hamano @ 2014-10-08 20:53 UTC (permalink / raw) To: brian m. carlson; +Cc: git, Derek Moore "brian m. carlson" <sandals@crustytoothpaste•net> writes: > Neither the AsciiDoc nor the Asciidoctor documentation specify whether > the same number of delimiter characters must be used to end a block as > to begin it, although both sets of documentation show exactly matching > pairs. AsciiDoc allows mismatches, but AsciiDoctor apparently does not. > Adjust the pretty formats documentation to use matching pairs to prevent > a misrendering where the remainder of the document was rendered as a > listing block. > > Signed-off-by: brian m. carlson <sandals@crustytoothpaste•net> > --- Thanks, well spotted, well described and well done ;-) Will queue. > Documentation/pretty-formats.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt > index eecc39d..dcf7429 100644 > --- a/Documentation/pretty-formats.txt > +++ b/Documentation/pretty-formats.txt > @@ -95,7 +95,7 @@ would show something like this: > The author of fe6e0ee was Junio C Hamano, 23 hours ago > The title was >>t4119: test autocomputing -p<n> for traditional diff input.<< > > --------- > +------- > + > The placeholders are: ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Documentation: fix misrender of pretty-formats in Asciidoctor 2014-10-08 20:46 ` [PATCH] Documentation: fix misrender of pretty-formats in Asciidoctor brian m. carlson 2014-10-08 20:53 ` Junio C Hamano @ 2014-10-09 2:31 ` Jeff King 2014-10-09 2:58 ` brian m. carlson 1 sibling, 1 reply; 6+ messages in thread From: Jeff King @ 2014-10-09 2:31 UTC (permalink / raw) To: brian m. carlson; +Cc: git, Junio C Hamano, Derek Moore On Wed, Oct 08, 2014 at 08:46:10PM +0000, brian m. carlson wrote: > Neither the AsciiDoc nor the Asciidoctor documentation specify whether > the same number of delimiter characters must be used to end a block as > to begin it, although both sets of documentation show exactly matching > pairs. AsciiDoc allows mismatches, but AsciiDoctor apparently does not. > Adjust the pretty formats documentation to use matching pairs to prevent > a misrendering where the remainder of the document was rendered as a > listing block. Argh, I somehow missed your message and just typed an almost-identical response. Consider that an approval of your patch. :) I'm still going to report this to the AsciiDoctor folks; they should probably be shooting for compatibility with vanilla AsciiDoc. -Peff ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Documentation: fix misrender of pretty-formats in Asciidoctor 2014-10-09 2:31 ` Jeff King @ 2014-10-09 2:58 ` brian m. carlson 0 siblings, 0 replies; 6+ messages in thread From: brian m. carlson @ 2014-10-09 2:58 UTC (permalink / raw) To: Jeff King; +Cc: git, Junio C Hamano, Derek Moore [-- Attachment #1: Type: text/plain, Size: 657 bytes --] On Wed, Oct 08, 2014 at 10:31:33PM -0400, Jeff King wrote: > I'm still going to report this to the AsciiDoctor folks; they should > probably be shooting for compatibility with vanilla AsciiDoc. Please do. I contribute occasionally to Asciidoctor, so I may pick it up and fix it. I'm interested in getting git's documentation to work better with Asciidoctor out of the box, so you may see some patches along that line sometime soon. -- brian m. carlson / brian with sandals: Houston, Texas, US +1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187 [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git-log man2html conversion broken: http://git-scm.com/docs/git-log 2014-10-08 17:49 git-log man2html conversion broken: http://git-scm.com/docs/git-log Derek Moore 2014-10-08 20:46 ` [PATCH] Documentation: fix misrender of pretty-formats in Asciidoctor brian m. carlson @ 2014-10-09 2:29 ` Jeff King 1 sibling, 0 replies; 6+ messages in thread From: Jeff King @ 2014-10-09 2:29 UTC (permalink / raw) To: Derek Moore; +Cc: git On Wed, Oct 08, 2014 at 12:49:54PM -0500, Derek Moore wrote: > The HTML for the git-log man page is being misrendered on the official site. > > See the placehoders list under "format:<string>" in the PRETTY FORMATS section. Thanks for the report. This renders fine locally with asciidoc, but the git-scm.com site uses the ruby asciidoctor gem. I think the issue is that the start and end markers for the code block are not identical: ------- The author of fe6e0ee was Junio C Hamano, 23 hours ago The title was >>t4119: test autocomputing -p<n> for traditional diff input.<< -------- Note that we start with 7 hyphens, but end with 8. The git-scm issue was already reported here (the site's issues are tracked separately from the mailing list): https://github.com/git/git-scm.com/issues/447 but I doubt if asciidoctor folks have been notified. I'll call their attention to that issue; they should produce the same output as regular asciidoc for this case. In the meantime, I don't know if it is worth us applying this workaround to the documentation (I'd feel better if I had actually confirmed that it fixed the problem): -- >8 -- Subject: docs: use identical start/end lines for code blocks Some AsciiDoc implementations (like the AsciiDoctor gem) do not recognize the end of a code block if it does not match the start line exactly. Those implementations are wrong, but we can work around it and make our sources look nicer at the same time. --- diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt index eecc39d..d3e3d25 100644 --- a/Documentation/pretty-formats.txt +++ b/Documentation/pretty-formats.txt @@ -91,7 +91,7 @@ instead of '\n'. E.g, 'format:"The author of %h was %an, %ar%nThe title was >>%s<<%n"' would show something like this: + -------- +-------- The author of fe6e0ee was Junio C Hamano, 23 hours ago The title was >>t4119: test autocomputing -p<n> for traditional diff input.<< ^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-10-09 2:59 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-10-08 17:49 git-log man2html conversion broken: http://git-scm.com/docs/git-log Derek Moore 2014-10-08 20:46 ` [PATCH] Documentation: fix misrender of pretty-formats in Asciidoctor brian m. carlson 2014-10-08 20:53 ` Junio C Hamano 2014-10-09 2:31 ` Jeff King 2014-10-09 2:58 ` brian m. carlson 2014-10-09 2:29 ` git-log man2html conversion broken: http://git-scm.com/docs/git-log Jeff King
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox