[sword-svn] r3721 - trunk/src/modules/filters
scribe at crosswire.org
scribe at crosswire.org
Sat Apr 18 20:21:43 MST 2020
Author: scribe
Date: 2020-04-18 20:21:43 -0700 (Sat, 18 Apr 2020)
New Revision: 3721
Modified:
trunk/src/modules/filters/osisxhtml.cpp
Log:
converted unknown divs with sID and eID to startTags and endTags respectively
Modified: trunk/src/modules/filters/osisxhtml.cpp
===================================================================
--- trunk/src/modules/filters/osisxhtml.cpp 2020-04-19 03:20:30 UTC (rev 3720)
+++ trunk/src/modules/filters/osisxhtml.cpp 2020-04-19 03:21:43 UTC (rev 3721)
@@ -849,7 +849,11 @@
else if (tag.isEndTag()) {
outText("</div>", buf, u);
}
- else if (!(type == "colophon")) outText(tag, buf, u);
+ else if (!(type == "colophon")) {
+ if (tag.getAttribute("sID")) tag.setEmpty(false);
+ if (tag.getAttribute("eID")) tag.setEndTag(true);
+ outText(tag, buf, u);
+ }
}
else if (!strcmp(tag.getName(), "span")) {
More information about the sword-cvs
mailing list