aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2021-10-14 15:15:25 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2021-10-14 09:04:56 -0700
commit628cde48cf54d806508869a9d6f4307efc266ef2 (patch)
tree104496d6b86d36ff437362cb7f6c7e44ad950160 /test
parented8877bd687333657b82864d609f4db69743c165 (diff)
downloadpandoc-628cde48cf54d806508869a9d6f4307efc266ef2.tar.gz
DocBook reader: honor linenumbering attribute
The attribute DocBook linenumbering="numbered" attribute on code blocks maps to "numberLines" internally.
Diffstat (limited to 'test')
-rw-r--r--test/docbook-reader.docbook5
-rw-r--r--test/docbook-reader.native3
2 files changed, 8 insertions, 0 deletions
diff --git a/test/docbook-reader.docbook b/test/docbook-reader.docbook
index f021dc8be..c38abda82 100644
--- a/test/docbook-reader.docbook
+++ b/test/docbook-reader.docbook
@@ -102,6 +102,11 @@ sub status {
print &quot;working&quot;;
}
</programlisting>
+ <programlisting linenumbering="numbered">
+sub status {
+ print &quot;working with line numbers&quot;;
+}
+</programlisting>
<screen>
% <command>ls</command>
</screen>
diff --git a/test/docbook-reader.native b/test/docbook-reader.native
index c8d59ca82..be3819336 100644
--- a/test/docbook-reader.native
+++ b/test/docbook-reader.native
@@ -266,6 +266,9 @@ Pandoc
]
, CodeBlock
( "" , [] , [] ) "sub status {\n print \"working\";\n}"
+ , CodeBlock
+ ( "" , [ "numberLines" ] , [] )
+ "sub status {\n print \"working with line numbers\";\n}"
, CodeBlock ( "" , [] , [] ) "% ls"
, Para [ Str "A" , Space , Str "list:" ]
, OrderedList