[sword-svn] r3712 - trunk/src/modules/filters

scribe at crosswire.org scribe at crosswire.org
Fri Apr 10 15:51:08 MST 2020


Author: scribe
Date: 2020-04-10 15:51:08 -0700 (Fri, 10 Apr 2020)
New Revision: 3712

Modified:
   trunk/src/modules/filters/osisxhtml.cpp
Log:
updated OSIS->XHTML filter for hi x- types to strip x- in the class name, e.g., <hi type="x-mytype"> -> <span class="mytype">


Modified: trunk/src/modules/filters/osisxhtml.cpp
===================================================================
--- trunk/src/modules/filters/osisxhtml.cpp	2020-04-10 22:16:36 UTC (rev 3711)
+++ trunk/src/modules/filters/osisxhtml.cpp	2020-04-10 22:51:08 UTC (rev 3712)
@@ -685,6 +685,7 @@
 				else if (type == "i" || type == "italic") {
 					outText("<i>", buf, u);
 				} else {	// all other types
+					if (type.startsWith("x-")) type << 2;
 					outText(SWBuf("<span class=\"") + type + SWBuf("\">"), buf, u);
 				}
 				u->hiStack->push(tag.toString());




More information about the sword-cvs mailing list