[sword-svn] r3695 - trunk/src/modules/filters
refdoc at crosswire.org
refdoc at crosswire.org
Sun Feb 2 23:23:14 MST 2020
Author: refdoc
Date: 2020-02-02 23:23:14 -0700 (Sun, 02 Feb 2020)
New Revision: 3695
Modified:
trunk/src/modules/filters/teirtf.cpp
Log:
primitive <list> and <item> implementation, lacking numbered lists
Modified: trunk/src/modules/filters/teirtf.cpp
===================================================================
--- trunk/src/modules/filters/teirtf.cpp 2020-02-03 06:11:42 UTC (rev 3694)
+++ trunk/src/modules/filters/teirtf.cpp 2020-02-03 06:23:14 UTC (rev 3695)
@@ -216,6 +216,25 @@
delete [] filepath;
}
+ // <list> <item> - primitive implementation lacking numbered lists
+ else if (!strcmp(tag.getName(), "list")) {
+ if ((!tag.isEndTag()) && (!tag.isEmpty())) {
+ buf += "\\par";
+ }
+ else if (tag.isEndTag()) {
+ buf += "\\par";
+ u->supressAdjacentWhitespace = true;
+ }
+ }
+ else if (!strcmp(tag.getName(), "item")) {
+ if ((!tag.isEndTag()) && (!tag.isEmpty())) {
+ buf += "\\tab* ";
+ }
+ else if (tag.isEndTag()) {
+ buf += "\\par";
+ }
+ }
+
else {
return false; // we still didn't handle token
}
More information about the sword-cvs
mailing list