Skip to content

Commit 16b8d59

Browse files
Add test to check paragraph joins
1 parent 13ed900 commit 16b8d59

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spec/docx/document_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@
396396
expect(@formatted_line.to_html.scan('<span style="text-decoration:underline;"><strong><em>all</em></strong></span>').size).to eq 1
397397
end
398398

399+
it 'should join paragraphs with newlines' do
400+
expect(@doc.to_html.scan(%(<p style="font-size:11pt;">Normal</p>\n<p style="font-size:11pt;"><em>Italic</em></p>\n<p style="font-size:11pt;"><strong>Bold</strong></p>)).size).to eq 1
401+
end
402+
399403
end
400404

401405
describe 'replacing contents' do

0 commit comments

Comments
 (0)