From 1d0ff54794b5edea7cdf1d2d66710a0fa885bcc5 Mon Sep 17 00:00:00 2001 From: Teus Benschop Date: Sun, 28 Oct 2018 11:51:26 +0100 Subject: New upstream version 1.8.1 --- src/modules/filters/osiswordjs.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/modules/filters/osiswordjs.cpp') diff --git a/src/modules/filters/osiswordjs.cpp b/src/modules/filters/osiswordjs.cpp index 75946a8..2da57c9 100644 --- a/src/modules/filters/osiswordjs.cpp +++ b/src/modules/filters/osiswordjs.cpp @@ -2,7 +2,7 @@ * * osiswordjs.cpp - SWFilter descendant for ??? * - * $Id: osiswordjs.cpp 2980 2013-09-14 21:51:47Z scribe $ + * $Id: osiswordjs.cpp 3515 2017-11-01 11:38:09Z scribe $ * * Copyright 2005-2013 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -66,7 +66,7 @@ char OSISWordJS::processText(SWBuf &text, const SWKey *key, const SWModule *modu int tokpos = 0; bool intoken = false; int wordNum = 1; - char wordstr[5]; + char wordstr[11]; SWBuf modName = (module)?module->getName():""; // add TR to w src in KJV then remove this next line SWBuf wordSrcPrefix = (modName == "KJV")?SWBuf("TR"):modName; @@ -171,6 +171,10 @@ char OSISWordJS::processText(SWBuf &text, const SWKey *key, const SWModule *modu // 'p' = 'fillpop' to save bandwidth text.appendFormatted("", lexName.c_str(), lemma.c_str(), wordID.c_str(), morph.c_str(), page.c_str(), modName.c_str()); wordNum++; + + if (wtag.isEmpty()) { + text += ""; + } } if ((*token == '/') && (token[1] == 'w') && option) { // Word text += ""; @@ -185,9 +189,10 @@ char OSISWordJS::processText(SWBuf &text, const SWKey *key, const SWModule *modu continue; } if (intoken) { - if (tokpos < 2045) + if (tokpos < 2045) { token[tokpos++] = *from; token[tokpos+2] = 0; + } } else { text.append(*from); -- cgit v1.2.3