On 5 May 2013 10:05, Terry Jones <[email protected]> wrote: > Hi Lex - thanks for the reply. > > I'm on Asciidoc 8.6.8 and Python 2.7.2 > > The exact command (being run out of Makefile) is: > > ATTRS := --attribute revdate=$(shell date +%Y-%m-%d) --attribute > revremark='$(shell echo Built by $$USER)' > asciidoc --doctype=book --backend=html $(ATTRS) book.asciidoc > > That looks ok, since it works here I am going to have to ask you to try things.
Can you please try it with a top level that does nothing but including examples.asciidoc which does nothing but including all the one, two etc files, and try them empty or with something in them. If that fails, can you append "; print self.current_depth" in asciidoc.py to the end of the line: self.current_depth = self.current_depth + 1 somewhere around line 4220 in my version, yours may be slightly different. Cheers Lex > Terry > > > On Sun, May 5, 2013 at 12:54 AM, Lex Trotman <[email protected]> wrote: > >> >> Works here, asciidoc hg, Python 2.7.3. >> >> What version of asciidoc are you using and what version of python are you >> using? Exactly what command are you running? >> >> Cheers >> Lex >> >> >> >> On 4 May 2013 23:30, <[email protected]> wrote: >> >>> Hi. I'm very new to asciidoc, so this could easily be my >>> misunderstanding... >>> >>> I'm writing a book chapter that has about 15 code examples. I made a >>> file called examples.asciidoc and in it I put 15 lines to include separate >>> asciidoc example files: >>> >>> include::examples/one.asciidoc[] >>> include::examples/two.asciidoc[] >>> >>> >>> etc. In my main asciidoc file, I include examples.asciidoc. So my >>> include depth is just 2, but the examples.asciidoc file flatly (i.e., not >>> nested) includes 15 files. When I run asciidoc to build the book, I get an >>> error: >>> >>> asciidoc: WARNING: examples.asciidoc: line 39: maximum include depth >>> exceeded >>> asciidoc: WARNING: examples.asciidoc: line 42: maximum include depth >>> exceeded >>> asciidoc: WARNING: examples.asciidoc: line 45: maximum include depth >>> exceeded >>> asciidoc: WARNING: examples.asciidoc: line 48: maximum include depth >>> exceeded >>> asciidoc: WARNING: examples.asciidoc: line 51: maximum include depth >>> exceeded >>> >>> >>> The warnings lines are for the 11th through 15th includes. >>> >>> From searching around, I can see that asciidoc has a maximum include >>> depth of 10, and from the error message that seems to be what I'm hitting. >>> But my depth is only 2. Maybe asciidoc has a different understanding of >>> include depth than I do. I've looked at my files and I'm sure there's no >>> recursive including going on (except for one, my included files are all >>> empty as I'm just getting going on the writing). >>> >>> So, assuming "depth" doesn't really mean depth but means "number" (or >>> similar) to asciidoc, is there an easy way to up the limit? Or is it >>> really a depth (in which case I've somehow screwed up)? >>> >>> Thanks for any help, >>> Terry Jones >>> >>> -- >>> 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?hl=en. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- >> 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?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > 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?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
