asciidoctorj icon indicating copy to clipboard operation
asciidoctorj copied to clipboard

1.6.0-RC.1: isBlock() always return true

Open arafalov opened this issue 6 years ago • 2 comments

The documentation does not actually seem to say when it should be true/false, but on my sample document it seems to be always true:

(Style: null, ContentModel: simple, Context: paragraph, Class: BlockImpl, IsBlock: true) (Style: null, ContentModel: compound, Context: dlist, Class: DescriptionListImpl, IsBlock: true) (Style: null, ContentModel: compound, Context: section, Class: SectionImpl, IsBlock: true)

arafalov avatar Nov 11 '18 13:11 arafalov

Everything StructuralNode should return true on isBlock(). Only PhraseNodes will return false.

robertpanzer avatar Nov 11 '18 14:11 robertpanzer

And isBlock() currently throws an Exception when called on a org.asciidoctor.ast.Cell or org.asciidoctor.ast.Column. See github.com/asciidoctor/asciidoctor#2963

robertpanzer avatar Nov 11 '18 14:11 robertpanzer