Skip to content

Commit

Permalink
Beautify generated HTML examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jirutka committed Dec 28, 2014
1 parent 8bca753 commit e9d42be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/asciidoctor/doctest/html/examples_suite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def convert_example(example, opts, renderer)

html.normalize!

create_example example.name, content: html.to_s, opts: opts
create_example example.name, content: HtmlBeautifier.beautify(html), opts: opts
end

private
Expand Down
2 changes: 1 addition & 1 deletion spec/html/examples_suite_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
let(:rendered) { '<p><b>chunky</b> bacon</p>' }

it 'returns content without top-level <p> tags' do
expect(result.content).to eq '<b>chunky</b> bacon'
expect(result.content.gsub(/\s+/, ' ')).to eq '<b>chunky</b> bacon'
end

it 'does not add implicit include into returned example' do
Expand Down

0 comments on commit e9d42be

Please sign in to comment.