summaryrefslogtreecommitdiff
path: root/test/text_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2017-04-27 23:50:02 -0600
committerDan Allen <dan.j.allen@gmail.com>2017-04-28 00:34:12 -0600
commit8389ffad07df9b0151839f97a6033564b5dc7dfc (patch)
tree6acf2a301330686b92afbcec2bd4b956fb688944 /test/text_test.rb
parent9405dad013762bd404ed46b94cd3d8585ee5aa38 (diff)
allow normalize option to be set on PreprocessorReader; change default to false
Diffstat (limited to 'test/text_test.rb')
-rw-r--r--test/text_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/text_test.rb b/test/text_test.rb
index faf7d857..bdf151db 100644
--- a/test/text_test.rb
+++ b/test/text_test.rb
@@ -35,7 +35,7 @@ context "Text" do
input << "[verse]\n"
input.concat(File.readlines(sample_doc_path(:encoding)))
doc = empty_document
- reader = Asciidoctor::PreprocessorReader.new doc, input
+ reader = Asciidoctor::PreprocessorReader.new doc, input, nil, :normalize => true
block = Asciidoctor::Parser.next_block(reader, doc)
assert_xpath '//pre', block.render.gsub(/^\s*\n/, ''), 1
end
@@ -45,7 +45,7 @@ context "Text" do
include::fixtures/encoding.asciidoc[tags=romé]
EOS
doc = empty_safe_document :base_dir => File.expand_path(File.dirname(__FILE__))
- reader = Asciidoctor::PreprocessorReader.new doc, input
+ reader = Asciidoctor::PreprocessorReader.new doc, input, nil, :normalize => true
block = Asciidoctor::Parser.next_block(reader, doc)
output = block.render
assert_css '.paragraph', output, 1