diff options
Diffstat (limited to 'utilities/mod2vpl.cpp')
-rw-r--r-- | utilities/mod2vpl.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/utilities/mod2vpl.cpp b/utilities/mod2vpl.cpp index ead9e6c..0b5ab1b 100644 --- a/utilities/mod2vpl.cpp +++ b/utilities/mod2vpl.cpp @@ -1,5 +1,10 @@ -/* - * Copyright 2009 CrossWire Bible Society (http://www.crosswire.org) +/****************************************************************************** + * + * mod2vpl.cpp - Utility to export a module in VPL format + * + * $Id: mod2vpl.cpp 2931 2013-07-31 13:07:26Z scribe $ + * + * Copyright 2000-2013 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society * P. O. Box 2528 * Tempe, AZ 85280-2528 @@ -85,13 +90,13 @@ int main(int argc, char **argv) { exit(-3); } - vkey->Headings(1); // turn on mod/testmnt/book/chap headings + vkey->setIntros(true); // turn on mod/testmnt/book/chap headings (*mod) = TOP; - while (!mod->Error()) { - buffer = new char [ strlen ((const char *)(*mod)) + 1 ]; - strcpy(buffer, (const char *)(*mod)); + while (!mod->popError()) { + buffer = new char [ mod->renderText().length() + 1 ]; + strcpy(buffer, mod->renderText()); cleanbuf(buffer); if (vref) { if ((strlen(buffer) > 0) && (vref)) { |