[sword-svn] r3011 - trunk/utilities

chrislit at crosswire.org chrislit at crosswire.org
Tue Jan 21 01:40:34 MST 2014


Author: chrislit
Date: 2014-01-21 01:40:34 -0700 (Tue, 21 Jan 2014)
New Revision: 3011

Modified:
   trunk/utilities/osis2mod.cpp
Log:
changed output of <div type="paragraph"/> to <div type="x-p"/>: This is unideal but doesn't violate the semantics of paragraph. (MODTOOLS-62)

Modified: trunk/utilities/osis2mod.cpp
===================================================================
--- trunk/utilities/osis2mod.cpp	2014-01-21 08:26:43 UTC (rev 3010)
+++ trunk/utilities/osis2mod.cpp	2014-01-21 08:40:34 UTC (rev 3011)
@@ -1140,7 +1140,7 @@
  * requiring each stored entry (i.e. verses) to be well-formed xml.
  * This routine normalizes container elements which could cross verse boundaries into milestones.
  * For most of these OSIS elements, there is a milestone form. However, p is not milestoneable.
- * For this reason, p is transformed into lb elements.
+ * For this reason, p is transformed into div elements with type x-p.
  * param t the tag to transform
  * return the transformed tag or the original one
  */
@@ -1161,9 +1161,9 @@
 
 	SWBuf tagName = t.getName();
 	if (!t.isEndTag()) {
-		// Transform <p> into <div type="paragraph"> and milestone it
+		// Transform <p> into <div type="x-p"> and milestone it
 		if (tagName == "p") {
-			t.setText("<div type=\"paragraph\" />");
+			t.setText("<div type=\"x-p\" />");
 			sprintf(buf, "gen%d", sID++);
 			t.setAttribute("sID", buf);
 		}
@@ -1222,7 +1222,7 @@
 			    tagName == "verse"
 			) {
 				// make this a clone of the start tag with sID changed to eID
-				// Note: in the case of </p> the topToken is a <div type="paragraph">
+				// Note: in the case of </p> the topToken is a <div type="x-p">
 				t = topToken;
 				t.setAttribute("eID", t.getAttribute("sID"));
 				t.setAttribute("sID", 0);




More information about the sword-cvs mailing list