allati / asciidoctor-extension-monotree

Apache License 2.0
10 stars 7 forks source link

Monotree cannot render entries without ">" #2

Open gernotstarke opened 6 years ago

gernotstarke commented 6 years ago

/root --/build --/src --/--/main build.gradle <1>

<1> this line causes the build to fail with an exception...
allati commented 6 years ago

Hello!

Tree rendering fails with "NegativeArraySizeException", am I correct? If so, then it is implemented that way - every line is expected have one or more ">" symbols at the beginning of each line. Though I think that better error text should be provided if line without starting ">" is encountered.

However, even if this restriction is removed, I don't think that tree you provided will be rendered as "tree". I think it will be like

├──/root
├──--/build
├──--/src
├──--/--/main
├──build.gradle

Is it what you expect to see as an output?

gernotstarke commented 6 years ago

thx Vadim, that's exactly what I expected...