[sword-svn] r3127 - trunk/utilities

Troy A. Griffitts scribe at crosswire.org
Fri Mar 14 10:39:55 MST 2014


? Really ? Awesome!

On 03/14/2014 05:41 AM, chrislit at crosswire.org wrote:
> Author: chrislit
> Date: 2014-03-14 05:41:22 -0700 (Fri, 14 Mar 2014)
> New Revision: 3127
>
> Modified:
>     trunk/utilities/osis2mod.cpp
> Log:
> fixed loss of reversified material (MODTOOLS-1)
>
>
> Modified: trunk/utilities/osis2mod.cpp
> ===================================================================
> --- trunk/utilities/osis2mod.cpp	2014-03-14 11:59:36 UTC (rev 3126)
> +++ trunk/utilities/osis2mod.cpp	2014-03-14 12:41:22 UTC (rev 3127)
> @@ -549,8 +549,9 @@
>   		// If the entry already exists, then append this entry to the text.
>   		// This is for verses that are outside the chosen versification. They are appended to the prior verse.
>   		// The space should not be needed if we retained verse tags.
> -		SWBuf currentText = module->getRawEntry();
> -		if (currentText.length()) {
> +		if (module->hasEntry(&currentVerse)) {
> +			module->flush();
> +			SWBuf currentText = module->getRawEntry();
>   			cout << "INFO(WRITE): Appending entry: " << currentVerse.getOSISRef() << ": " << activeVerseText << endl;
>   
>   			// If we have a non-UTF-8 encoding, we should decode it before concatenating, then re-encode it
> @@ -1650,6 +1651,7 @@
>   					outputEncoder = NULL;
>   					outputDecoder = NULL;
>   					break;
> +
>   				case '2':
>   					outputEncoder = new UTF8UTF16();
>   					outputDecoder = new UTF16UTF8();
>
>
> _______________________________________________
> sword-cvs mailing list
> sword-cvs at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-cvs




More information about the sword-cvs mailing list