diff options
author | Jeff King <peff@peff.net> | 2015-05-12 22:15:56 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-12 21:33:09 -0700 |
commit | ad3967a5a2bc8a2505ba618e59cd541775571ff8 (patch) | |
tree | 923fca2eed54186ccc92f4d39dde9cd73b6303a3 /Documentation/howto/rebuild-from-update-hook.txt | |
parent | Merge branch 'maint-1.9' into maint-2.0 (diff) | |
download | tgif-ad3967a5a2bc8a2505ba618e59cd541775571ff8.tar.xz |
doc: fix unmatched code fences in git-stripspace
The asciidoctor renderer is more picky than classic asciidoc,
and insists that the start and end of a code fence be the
same size.
Found with this hacky perl script:
foreach my $fn (@ARGV) {
open(my $fh, '<', $fn);
my ($fence, $fence_lineno, $prev);
while (<$fh>) {
chomp;
if (/^----+$/) {
if ($fence_lineno) {
if ($_ ne $fence) {
print "$fn:$fence_lineno:mismatched fence: ",
length($fence), " != ", length($_), "\n";
}
$fence_lineno = undef;
}
# hacky check to avoid title-underlining
elsif ($prev eq '' || $prev eq '+') {
$fence = $_;
$fence_lineno = $.;
}
}
$prev = $_;
}
}
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/howto/rebuild-from-update-hook.txt')
0 files changed, 0 insertions, 0 deletions