On Wednesday, September 2, 2015 at 4:13:00 PM UTC-7, Lex Trotman wrote:
>
> A ttile for the listing. 
>
> ["source", "c++", title=""] 
> ---- 
> code code code 
> ---- 


When I put an title in the test.txt example I attached at the start of the
thread, like this:

[source,{basebackend@docbook:c++:cpp},title=""]

Then the 'fails' target (the one without any text between the anchor and 
the [source]
directive) generates illegal XML that fails xmllint as shown in the 
attached log. It doesn't
matter if the title value is empty or not - it's trying to generate the XML 
title attribute
inside the *value* of the linenumbering attribute, and the quote nesting 
gets messed
up.


-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.
if test ! -d works ; then mkdir works ; fi
if test ! -d fails ; then mkdir fails ; fi
asciidoc -b html -o works/adoc.html -a inctext=true test.txt
asciidoc -b html -o fails/adoc.html                    test.txt
a2x -k  -f xhtml -v --destination-dir=works -a inctext=true test.txt
a2x: ERROR: "xmllint" --nonet --noout --valid 
"/home/tree/git/vulkan/doc/specs/vulkan/test/works/test.xml" returned non-zero 
exit status 1
a2x: args: ['-k', '-f', 'xhtml', '-v', '--destination-dir=works', '-a', 
'inctext=true', 'test.txt']
a2x: resource files: []
a2x: resource directories: ['/etc/asciidoc/images', '/etc/asciidoc/stylesheets']
a2x: executing: "/usr/bin/asciidoc" --backend docbook -a "a2x-format=xhtml"  
--attribute "inctext=true" --verbose  --out-file 
"/home/tree/git/vulkan/doc/specs/vulkan/test/works/test.xml" 
"/home/tree/git/vulkan/doc/specs/vulkan/test/test.txt"

asciidoc: reading: /etc/asciidoc/asciidoc.conf
asciidoc: reading: /home/tree/git/vulkan/doc/specs/vulkan/test/test.txt
asciidoc: reading: /etc/asciidoc/docbook45.conf
asciidoc: reading: /etc/asciidoc/filters/source/source-highlight-filter.conf
asciidoc: reading: /etc/asciidoc/filters/graphviz/graphviz-filter.conf
asciidoc: reading: /etc/asciidoc/filters/music/music-filter.conf
asciidoc: reading: /etc/asciidoc/filters/code/code-filter.conf
asciidoc: reading: /etc/asciidoc/filters/latex/latex-filter.conf
asciidoc: reading: /etc/asciidoc/lang-en.conf
asciidoc: writing: /home/tree/git/vulkan/doc/specs/vulkan/test/works/test.xml

a2x: executing: "xmllint" --nonet --noout --valid 
"/home/tree/git/vulkan/doc/specs/vulkan/test/works/test.xml"

/home/tree/git/vulkan/doc/specs/vulkan/test/works/test.xml:24: parser error : 
attributes construct error
<programlisting language="c++" linenumbering="title=""">int somefunc(
                                                     ^
/home/tree/git/vulkan/doc/specs/vulkan/test/works/test.xml:24: parser error : 
Couldn't find end of Start Tag programlisting line 24
<programlisting language="c++" linenumbering="title=""">int somefunc(
                                                     ^
/home/tree/git/vulkan/doc/specs/vulkan/test/works/test.xml:25: parser error : 
Opening and ending tag mismatch: section line 20 and programlisting
    int arg);</programlisting>
                              ^
/home/tree/git/vulkan/doc/specs/vulkan/test/works/test.xml:27: parser error : 
Opening and ending tag mismatch: article line 6 and section
</section>
          ^
/home/tree/git/vulkan/doc/specs/vulkan/test/works/test.xml:28: parser error : 
Extra content at the end of the document
</article>
^

Makefile:8: recipe for target 'tests' failed
make: *** [tests] Error 1

Reply via email to