Alfredo Braunstein <[EMAIL PROTECTED]> writes: | Alfredo Braunstein wrote: | | > John Levon wrote: | > | >> But the stuff you do with last par is better than what I did. We just | >> need to combine the two :) | > | > How about this one? | | This one should actually work ;)
It looks way to complicated for me... is all of that really needed? | - selList.push_back(asciiPar); | + string frontpar = pars.front().asString(&buffer, false); | + string shown; | + int size = pars.size(); | + if (size > 1 && frontpar.size() == 0) { and what you mean here is "frontpar.empty()" And what if the second par also generates no output? | + shown = frontpar.substr(0, frontsize) + "..." + | + backpar.substr(backstart); And I am really not sure about that ellipsis in the middle stuff... (makes no sense since all of it is from the beginning of the selection/cut/copy anyway. Lets find a simpler solution please, with half the amount of code... -- Lgb