dodong471520/asciidoc

build with -e parameter doesn't work

Opened this issue · 1 comments

What steps will reproduce the problem?
1.  Use -e to specify and specify all config files on command line with -f 
2.  Run doc build -b docbook -d book
3.  Produced docbook file is wrong

See [1] for more details.  

[1] 
http://groups.google.com/group/asciidoc/browse_thread/thread/cd0f47495fd04181#

What is the expected output? What do you see instead?

Correct docbook files. Some macros/attributes are not expanded correctly.

## Command line to build book.txt 
./asciidoc-8.6.4/asciidoc.py -f asciidoc-8.6.4/asciidoc.conf -f 
asciidoc-8.6.4/docbook45.conf -f asciidoc-8.6.4/lang-en.conf -f 
asciidoc-8.6.4/filters/code/code-filter.conf -f asciidoc-8.6.4/filters/ 
source/source-highlight-filter.conf -f asciidoc-8.6.4/filters/graphviz/ 
graphviz-filter.conf -d book -b docbook -o b.xml -ev ./book.txt 
asciidoc: reading: asciidoc-8.6.4/asciidoc.conf 
asciidoc: reading: asciidoc-8.6.4/docbook45.conf 
asciidoc: reading: asciidoc-8.6.4/lang-en.conf 
asciidoc: reading: asciidoc-8.6.4/filters/code/code-filter.conf 
asciidoc: reading: asciidoc-8.6.4/filters/source/source-highlight- 
filter.conf 
asciidoc: reading: asciidoc-8.6.4/filters/graphviz/graphviz- 
filter.conf 
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/book.txt 
asciidoc: WARNING: book.txt: line 5: missing section: [sect1] 
asciidoc: WARNING: book.txt: line 5: missing section: [sect1] 
asciidoc: WARNING: book.txt: line 5: missing section: [sect1] 
asciidoc: WARNING: book.txt: line 5: missing section: [sect1] 
asciidoc: writing: /home/haad/Desktop/misc/asciidoc/b.xml 
asciidoc: WARNING: book.txt: line 5: missing section: [header] 
asciidoc: WARNING: book.txt: line 28: missing section: [sect2] 
asciidoc: WARNING: book.txt: line 33: missing section: [sect1] 
asciidoc: WARNING: book.txt: line 71: missing section: [sect2] 
asciidoc: WARNING: book.txt: line 75: missing section: [sect3] 
asciidoc: WARNING: book.txt: line 79: missing section: [sect4] 
asciidoc: WARNING: book.txt: line 88: missing section: [sect1] 
asciidoc: WARNING: book.txt: line 96: missing section: [sect1] 
asciidoc: WARNING: book.txt: line 108: missing section: [sect2] 
asciidoc: WARNING: book.txt: line 156: missing section: [footer] 

What version of the product are you using? On what operating system?

Thi worked on asciidoc 8.5.3 and was broken on > 8.6.3 

Please provide any additional information below.

Attached patch fixes problem for me. It adds support for two stage config file 
loading when we use -e parameter.


Original issue reported on code.google.com by haa...@gmail.com on 4 Mar 2011 at 11:14

Attached updated fix, after some testing I have find out that 
,'titles','specialchars' is needed in initital load_conffiles include parameter.

Original comment by haa...@gmail.com on 5 Mar 2011 at 6:23

Attachments: