[sword-svn] r3158 - in branches/sword-1-7-x: . src/modules/filters
greg.hellings at crosswire.org
greg.hellings at crosswire.org
Wed Apr 16 20:57:59 MST 2014
Author: greg.hellings
Date: 2014-04-16 20:57:58 -0700 (Wed, 16 Apr 2014)
New Revision: 3158
Modified:
branches/sword-1-7-x/
branches/sword-1-7-x/src/modules/filters/teihtmlhref.cpp
branches/sword-1-7-x/src/modules/filters/teirtf.cpp
branches/sword-1-7-x/src/modules/filters/teixhtml.cpp
Log:
Merged r3085 - fix for API-158
Property changes on: branches/sword-1-7-x
___________________________________________________________________
Modified: svn:mergeinfo
- /trunk:2989-2991,2997,3001-3004,3006,3010-3013,3015-3020,3026-3039,3045-3046,3048,3056,3058-3062,3067,3073,3077-3081
+ /trunk:2989-2991,2997,3001-3004,3006,3010-3013,3015-3020,3026-3039,3045-3046,3048,3056,3058-3062,3067,3073,3077-3081,3085
Modified: branches/sword-1-7-x/src/modules/filters/teihtmlhref.cpp
===================================================================
--- branches/sword-1-7-x/src/modules/filters/teihtmlhref.cpp 2014-04-17 03:56:12 UTC (rev 3157)
+++ branches/sword-1-7-x/src/modules/filters/teihtmlhref.cpp 2014-04-17 03:57:58 UTC (rev 3158)
@@ -93,6 +93,8 @@
buf += "<i>";
else if (rend == "bold")
buf += "<b>";
+ else if (rend == "subscript")
+ buf += "<small><sub>";
else if (rend == "sup")
buf += "<small><sup>";
@@ -105,6 +107,8 @@
buf += "</i>";
else if (rend == "bold")
buf += "</b>";
+ else if (rend == "subscript")
+ buf += "</small></sub>";
else if (rend == "sup")
buf += "</sup></small>";
}
Modified: branches/sword-1-7-x/src/modules/filters/teirtf.cpp
===================================================================
--- branches/sword-1-7-x/src/modules/filters/teirtf.cpp 2014-04-17 03:56:12 UTC (rev 3157)
+++ branches/sword-1-7-x/src/modules/filters/teirtf.cpp 2014-04-17 03:57:58 UTC (rev 3158)
@@ -80,6 +80,8 @@
buf += "{\\i1 ";
else if (rend == "bold")
buf += "{\\b1 ";
+ else if (rend == "subscript")
+ buf += "{\\sub ";
else if (rend == "sup")
buf += "{\\super ";
Modified: branches/sword-1-7-x/src/modules/filters/teixhtml.cpp
===================================================================
--- branches/sword-1-7-x/src/modules/filters/teixhtml.cpp 2014-04-17 03:56:12 UTC (rev 3157)
+++ branches/sword-1-7-x/src/modules/filters/teixhtml.cpp 2014-04-17 03:57:58 UTC (rev 3158)
@@ -95,6 +95,8 @@
buf += "<b>";
else if (rend == "sup")
buf += "<small><sup>";
+ else if (rend == "subscript")
+ buf += "<small><sub>";
else if (rend == "overline")
buf += "<span style=\"text-decoration:overline\">";
@@ -109,6 +111,8 @@
buf += "</b>";
else if (rend == "sup")
buf += "</sup></small>";
+ else if (rend == "subscript")
+ buf += "</small></sub>";
else if (rend == "overline")
buf += "</span>";
}
More information about the sword-cvs
mailing list