it looks when I include some code in my asciidoc, a2x alway complains about some lines of my code. removing these lines make it work fine (at least pdf got generated). it looks I still need another way to escape the special charactors from being interpreted by a2x xml stuff?

//this is my code:
.vim script to selectively indent only command output
----
command! Log2AsciidocIndent call Log2AsciidocIndent()
function! Log2AsciidocIndent()
"indent between <<top>> and next command
    "skip the 1st comand
":execute "normal! gg" . '/^\(\S\S\+.\{0,40}\S#\s*[^:]\+\|slot \d\d\=->\S\+.*\|->.*\|\*-\*-\*-\*-\*-\)' . "\<cr>" ."j"
    "this doesn't work well, always report some errors
":g/<<top>>/+1,/^== \(\S\S\+.\{0,40}\S#\s*[^:]\+\|slot \d\d\=->\S\+\|->.\+\|\*-\*-\*-\*-\*-\)/-1 >

    "testing this...

    ...snippet...
---



//this is the complaint when I gengerate pdf from a2x.

ing@640g-laptop:~$ a2x -f pdf --verbose --no-xmllint -D ~/Dropbox/temp-transfer/ xnix/vim/vim-jtac-work.txt a2x: args: ['-f', 'pdf', '--verbose', '--no-xmllint', '-D', '/home/ping/Dropbox/temp-transfer/', 'xnix/vim/vim-jtac-work.txt']
a2x: resource files: []
a2x: resource directories: ['/usr/local/etc/asciidoc/images', '/usr/local/etc/asciidoc/stylesheets'] a2x: executing: "/usr/local/bin/asciidoc.py" --backend docbook -a "a2x-format=pdf" --verbose --out-file "/home/ping/Dropbox/temp-transfer/vim-at-work.xml" "/home/ping/xnix/vim/vim-at-work.txt"

asciidoc: reading: /usr/local/etc/asciidoc/asciidoc.conf
asciidoc: reading: /home/ping/xnix/vim/vim-at-work.txt
asciidoc: reading: /usr/local/etc/asciidoc/docbook45.conf
asciidoc: reading: /usr/local/etc/asciidoc/filters/source/source-highlight-filter.conf
asciidoc: reading: /usr/local/etc/asciidoc/filters/code/code-filter.conf
asciidoc: reading: /usr/local/etc/asciidoc/filters/latex/latex-filter.conf
asciidoc: reading: /usr/local/etc/asciidoc/filters/music/music-filter.conf
asciidoc: reading: /usr/local/etc/asciidoc/filters/graphviz/graphviz-filter.conf
asciidoc: reading: /usr/local/etc/asciidoc/lang-en.conf
asciidoc: writing: /home/ping/Dropbox/temp-transfer/vim-at-work.xml

a2x: executing: "dblatex" -t pdf -p "/usr/local/etc/asciidoc/dblatex/asciidoc-dblatex.xsl" -s "/usr/local/etc/asciidoc/dblatex/asciidoc-dblatex.sty" -V "/home/ping/Dropbox/temp-transfer/vim-at-work.xml"

/usr/share/dblatex/lib/dbtexmf/dblatex/grubber/util.py:8: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Build the book set list...
xsltproc --xinclude --xincludestyle -o /tmp/tmpH_Dlc3/doclist.txt doclist.xsl /Dropbox/temp-transfer/vim-at-work.xml /Dropbox/temp-transfer/vim-at-work.xml:2129: parser error : PCDATA invalid Char value 8 ":g/&lt;&lt;top&gt;&gt;/+1,/^== \(\S\S\+.\{0,40}\S#\s*[^]\+\|slot \d\d\=-
                                                             ^
/Dropbox/temp-transfer/vim-at-work.xml:2129: parser error : PCDATA invalid Char value 7 ":g/&lt;&lt;top&gt;&gt;/+1,/^== \(\S\S\+.\{0,40}\S#\s*[^]\+\|slot \d\d\=-
                                                              ^
unable to parse /Dropbox/temp-transfer/vim-at-work.xml

a2x: deleting /home/ping/Dropbox/temp-transfer/vim-at-work.xml

--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to