Skip to content

Commit 26a208f

Browse files
committed
Replace empty paragraph elements with two line breaks (based on two <br/> elements (fix #90)
1 parent 5c46f6a commit 26a208f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sword_backend/text_processor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ string TextProcessor::getFilteredText(const string& text, int chapter, int verse
138138
this->findAndReplaceAll(filteredText, chapterFilter, "<chapter class=\"sword-markup sword-chapter\"");
139139
this->findAndReplaceAll(filteredText, lbBeginParagraph, "");
140140
this->findAndReplaceAll(filteredText, lbEndParagraph, "&nbsp;<div class=\"sword-markup sword-paragraph-end\"><br></div>");
141-
this->findAndReplaceAll(filteredText, emptyParagraphElement, "");
141+
this->findAndReplaceAll(filteredText, emptyParagraphElement, "<br/><br/>");
142142
this->findAndReplaceAll(filteredText, lbElementFilter, "<div class=\"sword-markup sword-lb\" ");
143143
this->findAndReplaceAll(filteredText, lElementFilter, "<div class=\"sword-markup sword-l\" ");
144144
this->findAndReplaceAll(filteredText, lgElementFilter, "<div class=\"sword-markup sword-lg\" ");

0 commit comments

Comments
 (0)