diff options
| -rw-r--r-- | lib/asciidoctor/parser.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/asciidoctor/parser.rb b/lib/asciidoctor/parser.rb index e859baab..37a62091 100644 --- a/lib/asciidoctor/parser.rb +++ b/lib/asciidoctor/parser.rb @@ -1108,9 +1108,8 @@ class Parser # # Returns nothing. def self.parse_blocks(reader, parent) - while reader.has_more_lines? - block = Parser.next_block(reader, parent) - parent << block if block + while (block = next_block reader, parent) + parent << block end end |
