summaryrefslogtreecommitdiffstats
path: root/intf
diff options
context:
space:
mode:
Diffstat (limited to 'intf')
-rw-r--r--intf/collate2imp.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/intf/collate2imp.cpp b/intf/collate2imp.cpp
index ee5a359..13a9fe3 100644
--- a/intf/collate2imp.cpp
+++ b/intf/collate2imp.cpp
@@ -41,13 +41,6 @@ int main(int argc, char **argv) {
bool more = true;
do {
more = FileMgr::getLine(fd, lineBuffer)!=0;
- if (inVerse) {
- if (lineBuffer.indexOf("</ab>") > -1) {
- lineBuffer.setSize(lineBuffer.indexOf("</ab>"));
- inVerse = false;
- }
- cout << lineBuffer.trim() << endl;
- }
if (lineBuffer.startsWith(bookTag)) {
lineBuffer << bookTag.length();
SWBuf book = lineBuffer.stripPrefix('"');
@@ -70,7 +63,17 @@ int main(int argc, char **argv) {
else {
inVerse = true;
}
- cout << "$$$" << vk.getOSISRef() << "\n";
+ lineBuffer.trim();
+ if (lineBuffer.length() > 0 && lineBuffer != "&om;") {
+ cout << "$$$" << vk.getOSISRef() << (vk.getVerse() ? "" : ".0") << "\n";
+ cout << lineBuffer << endl;
+ }
+ }
+ else if (inVerse) {
+ if (lineBuffer.indexOf("</ab>") > -1) {
+ lineBuffer.setSize(lineBuffer.indexOf("</ab>"));
+ inVerse = false;
+ }
cout << lineBuffer.trim() << endl;
}
} while (more);