diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2015-05-11 19:30:36 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2015-05-11 19:30:36 -0600 |
| commit | 4ac66c57427fe0b2f24d337aca0ff56571e97f35 (patch) | |
| tree | 70aa3a48b5371235a695feb3b9b612995996b108 | |
| parent | 8a72a3fa18f48fcc0ec05c5236df1e8655f1d269 (diff) | |
fix typo in parse_content method
| -rw-r--r-- | lib/asciidoctor/extensions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/extensions.rb b/lib/asciidoctor/extensions.rb index bd4e956f..4e3d6162 100644 --- a/lib/asciidoctor/extensions.rb +++ b/lib/asciidoctor/extensions.rb @@ -110,7 +110,7 @@ module Extensions #-- # QUESTION is parse_content the right method name? should we wrap in open block automatically? def parse_content parent, content, attributes = {} - reader = (content.is_a? Reader) ? reader : (Reader.new content) + reader = (content.is_a? Reader) ? content : (Reader.new content) while reader.has_more_lines? block = Parser.next_block reader, parent, attributes parent << block if block |
