diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2021-10-14 15:15:25 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-10-14 09:04:56 -0700 |
commit | 628cde48cf54d806508869a9d6f4307efc266ef2 (patch) | |
tree | 104496d6b86d36ff437362cb7f6c7e44ad950160 /test | |
parent | ed8877bd687333657b82864d609f4db69743c165 (diff) | |
download | pandoc-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.docbook | 5 | ||||
-rw-r--r-- | test/docbook-reader.native | 3 |
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 "working"; } </programlisting> + <programlisting linenumbering="numbered"> +sub status { + print "working with line numbers"; +} +</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 |