[sword-svn] r3347 - trunk/src/modules/filters
refdoc at crosswire.org
refdoc at crosswire.org
Mon Mar 16 01:19:37 MST 2015
Author: refdoc
Date: 2015-03-16 01:19:36 -0700 (Mon, 16 Mar 2015)
New Revision: 3347
Modified:
trunk/src/modules/filters/teilatex.cpp
Log:
more TEI work
Modified: trunk/src/modules/filters/teilatex.cpp
===================================================================
--- trunk/src/modules/filters/teilatex.cpp 2015-03-14 18:25:45 UTC (rev 3346)
+++ trunk/src/modules/filters/teilatex.cpp 2015-03-16 08:19:36 UTC (rev 3347)
@@ -69,14 +69,14 @@
if (!strcmp(tag.getName(), "p")) {
if ((!tag.isEndTag()) && (!tag.isEmpty())) { // non-empty start tag
- buf += "<!P><br />";
+ buf += "";
}
else if (tag.isEndTag()) { // end tag
- buf += "<!/P><br />";
+ buf += "//\n";
//userData->supressAdjacentWhitespace = true;
}
else { // empty paragraph break marker
- buf += "<!P><br />";
+ buf += "//\n";
//userData->supressAdjacentWhitespace = true;
}
}
@@ -221,16 +221,16 @@
if(was_osisref)
{
- buf.appendFormatted("<a href=\"passagestudy.jsp?action=showRef&type=scripRef&value=%s&module=%s\">",
- (ref) ? URL::encode(ref.c_str()).c_str() : "",
- (work.size()) ? URL::encode(work.c_str()).c_str() : "");
+ buf.appendFormatted("\\swordref{%s}{%s}{",
+ (ref) ? ref.c_str() : "",
+ (work.size()) ? work.c_str() : "");
}
else
{
// Dictionary link, or something
- buf.appendFormatted("<a href=\"sword://%s/%s\">",
- (work.size()) ? URL::encode(work.c_str()).c_str() : u->version.c_str(),
- (ref) ? URL::encode(ref.c_str()).c_str() : ""
+ buf.appendFormatted("\\sworddictref{%s}{%s}{",
+ (work.size()) work.c_str() : u->version.c_str(),
+ (ref) ? ref.c_str() : ""
);
}
}
More information about the sword-cvs
mailing list