aboutsummaryrefslogtreecommitdiff
path: root/testdata/test.got.html
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-04-04 16:38:06 +0700
committerShulhan <ms@kilabit.info>2026-04-04 16:38:06 +0700
commit45526ab31b93debffd51e1aaad43c9acf9d61ab6 (patch)
treea23ccc730093cf8d251c1d6e43a3c9679f42112c /testdata/test.got.html
parenta9e626c6306697a64af87b1b7fa4f61b0580d5a8 (diff)
downloadasciidoctor-go-45526ab31b93debffd51e1aaad43c9acf9d61ab6.tar.xz
all: fix parsing literal paragraph
A line that start with one or more space will be considered as literal paragraph. Once literal line found it will end until an empty line.
Diffstat (limited to 'testdata/test.got.html')
-rw-r--r--testdata/test.got.html46
1 files changed, 41 insertions, 5 deletions
diff --git a/testdata/test.got.html b/testdata/test.got.html
index 6e8c276..18d7609 100644
--- a/testdata/test.got.html
+++ b/testdata/test.got.html
@@ -2496,8 +2496,14 @@ p.tableblock {
<li><a href="#title">11.1. Title</a></li>
</ul>
</li>
-<li><a href="#block_listing">12. Block listing</a></li>
-<li><a href="#block_literal">13. Block literal</a></li>
+<li><a href="#listing_blocks">12. Listing Blocks</a></li>
+<li><a href="#literal_blocks">13. Literal Blocks</a>
+<ul class="sectlevel2">
+<li><a href="#indent_method">13.1. Indent method</a></li>
+<li><a href="#literal_style_sintax">13.2. Literal style sintax</a></li>
+<li><a href="#delimited_literal_block">13.3. Delimited literal block</a></li>
+</ul>
+</li>
<li><a href="#ordered_lists">14. Ordered Lists</a></li>
<li><a href="#unordered_lists">15. Unordered Lists</a>
<ul class="sectlevel2">
@@ -2910,7 +2916,7 @@ paragraph</strong></em>.</p>
</div>
</div>
<div class="sect1">
-<h2 id="block_listing"><a class="link" href="#block_listing">12. Block listing</a><a class="anchor" href="#block_listing" aria-label="Anchor for block_listing"></a></h2>
+<h2 id="listing_blocks"><a class="link" href="#listing_blocks">12. Listing Blocks</a><a class="anchor" href="#listing_blocks" aria-label="Anchor for listing_blocks"></a></h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content">
@@ -2929,8 +2935,10 @@ This is not listing.</p>
</div>
</div>
<div class="sect1">
-<h2 id="block_literal"><a class="link" href="#block_literal">13. Block literal</a><a class="anchor" href="#block_literal" aria-label="Anchor for block_literal"></a></h2>
+<h2 id="literal_blocks"><a class="link" href="#literal_blocks">13. Literal Blocks</a><a class="anchor" href="#literal_blocks" aria-label="Anchor for literal_blocks"></a></h2>
<div class="sectionbody">
+<div class="sect2">
+<h3 id="indent_method"><a class="link" href="#indent_method">13.1. Indent method</a><a class="anchor" href="#indent_method" aria-label="Anchor for indent_method"></a></h3>
<div class="literalblock">
<div class="content">
<pre>A literal paragraph followed by non-space line:
@@ -2939,6 +2947,30 @@ non-space line.</pre>
</div>
<div class="literalblock">
<div class="content">
+<pre>Literal with tab.
+ Literal with tab.
+Literal with tab.</pre>
+</div>
+</div>
+<div class="literalblock">
+<div class="content">
+<pre>Literal with two spaces.
+ Literal with two spaces.
+Literal with two tab.</pre>
+</div>
+</div>
+<div class="literalblock">
+<div class="content">
+<pre>Literal with mixed tab and spaces (two spaces).
+Literal with mixed tab and spaces (a tab).
+ Literal with mixed tab and spaces (two spaces and a tab).</pre>
+</div>
+</div>
+</div>
+<div class="sect2">
+<h3 id="literal_style_sintax"><a class="link" href="#literal_style_sintax">13.2. Literal style sintax</a><a class="anchor" href="#literal_style_sintax" aria-label="Anchor for literal_style_sintax"></a></h3>
+<div class="literalblock">
+<div class="content">
<pre>A literal named.</pre>
</div>
</div>
@@ -2946,9 +2978,13 @@ non-space line.</pre>
<p>[literal] x
A literal named and trailing characters will become paragraph.</p>
</div>
+</div>
+<div class="sect2">
+<h3 id="delimited_literal_block"><a class="link" href="#delimited_literal_block">13.3. Delimited literal block</a><a class="anchor" href="#delimited_literal_block" aria-label="Anchor for delimited_literal_block"></a></h3>
<div class="literalblock">
<div class="content">
-<pre>With 4 dots.</pre>
+<pre>With .... block.</pre>
+</div>
</div>
</div>
</div>