Hi all:

I am using http://www.tiddlytools.com/#SplitTiddler version 1.6.0 and
there seems to be
a bit of a bug. There is an off by one errors causing the wrong split
criteria to be selected.

The 1.6.0 code reads:

        var parts=[];
        if (f.splitby[0].checked) { /* chars */
                for (var i=0; i<src.length; i+=f.charcount.value)
                        parts.push(src.substr(i,f.charcount.value));
        } else if (f.splitby[1].checked) { /* lines */

but it should be:

        var parts=[];
        if (f.splitby[1].checked) { /* chars */
                for (var i=0; i<src.length; i+=f.charcount.value)
                        parts.push(src.substr(i,f.charcount.value));
        } else if (f.splitby[2].checked) { /* lines */


This fix works for me.

-- rouilj

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to