Skip to content

Commit

Permalink
Fix bug #37, Bibletime does not display paragraphs correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Holmlund committed Feb 7, 2017
1 parent 38e40b4 commit de488ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2017-02-07 Gary Holmlund <gary.holmlund@gmail.com>
* Fix bug #37 Bibletime does not display paragraphs correctly

2017-02-02 Gary Holmlund <gary.holmlund@gmail.com>
* Fix bug #94 Crash when closing module display window with Qt 5.8

Expand Down
5 changes: 5 additions & 0 deletions src/backend/filters/osistohtml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ bool Filters::OsisToHtml::handleToken(sword::SWBuf &buf, const char *token, swor
buf.append("<div class=\"chapter\" ></div>"); //don't open a div here, that would lead to a broken XML structure
} else if (type == "x-p") {
buf.append("<br/>");
} else if (type == "paragraph") {
if (tag.getAttribute("sID"))
buf.append("<p>");
else if (tag.getAttribute("eID"))
buf.append("</p>");
} else {
buf.append("<div>");
}
Expand Down

0 comments on commit de488ad

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy