* [LTP] [COMMITTED] [PATCH] Revert "docparse: Fix heading levels"
@ 2021-05-12 13:54 Cyril Hrubis
2021-05-12 15:16 ` Petr Vorel
0 siblings, 1 reply; 2+ messages in thread
From: Cyril Hrubis @ 2021-05-12 13:54 UTC (permalink / raw)
To: ltp
This reverts commit 04a7608fe4f7fe2c267216d8b90acf019bdea824.
Fixes build with asciidoc that otherwise failed with:
...
asciidoc: ERROR: filters.txt: line 4: only book doctypes can contain level 0 sections
...
asciidoc: ERROR: all-tests.txt: line 4: only book doctypes can contain level 0 sections
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Acked-by: Petr Vorel <pvorel@suse.cz>
---
docparse/testinfo.pl | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/docparse/testinfo.pl b/docparse/testinfo.pl
index 8bc4623b6..857278ac8 100755
--- a/docparse/testinfo.pl
+++ b/docparse/testinfo.pl
@@ -87,6 +87,11 @@ sub code
return "+$_[0]+";
}
+sub hr
+{
+ return "\n\n'''\n\n";
+}
+
sub html_a
{
my ($url, $text) = @_;
@@ -99,17 +104,17 @@ sub html_a
sub h1
{
- return "= $_[0]\n";
+ return "== $_[0]\n";
}
sub h2
{
- return "== $_[0]\n";
+ return "=== $_[0]\n";
}
sub h3
{
- return "=== $_[0]\n";
+ return "==== $_[0]\n";
}
sub label
@@ -350,6 +355,7 @@ sub content_all_tests
$printed = $letter;
}
+ $content .= hr() if (defined($tmp));
$content .= label($name);
$content .= h3($name);
$content .= $letters;
--
2.26.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [COMMITTED] [PATCH] Revert "docparse: Fix heading levels"
2021-05-12 13:54 [LTP] [COMMITTED] [PATCH] Revert "docparse: Fix heading levels" Cyril Hrubis
@ 2021-05-12 15:16 ` Petr Vorel
0 siblings, 0 replies; 2+ messages in thread
From: Petr Vorel @ 2021-05-12 15:16 UTC (permalink / raw)
To: ltp
Hi Cyril,
> This reverts commit 04a7608fe4f7fe2c267216d8b90acf019bdea824.
> Fixes build with asciidoc that otherwise failed with:
> ...
> asciidoc: ERROR: filters.txt: line 4: only book doctypes can contain level 0 sections
> ...
> asciidoc: ERROR: all-tests.txt: line 4: only book doctypes can contain level 0 sections
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
> Acked-by: Petr Vorel <pvorel@suse.cz>
I'm sorry for breaking the build, thanks for fixing it!
That was actually the reason why I used shifted level, but I didn't remember.
Thus I'll send a patch today for enhanced docparse testing.
Kind regards,
Petr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-12 15:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-12 13:54 [LTP] [COMMITTED] [PATCH] Revert "docparse: Fix heading levels" Cyril Hrubis
2021-05-12 15:16 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox