Juergen Vigna <[EMAIL PROTECTED]> writes: | On 07-Mar-2002 Lars Gullik Bjønnes wrote: >> - buffer << word.str() << "\n"; >> - word.str(""); >> + buffer << "\n"; >> + last_word_length = 0; > | Well this patch will most probably fail to work. The word is needed to make | a good linebreak algorithm and break the lines on aproximately linelen. So | in the above word may contain a string which was not yet written to the | buffer AND we have to write it to the buffer only AFTER we could check for | it's lenght!
well yes... _but_ that is not absolutely true I guess... I think we can have an algorithm that is almost as good without the word stringstream complexity. (and the best would be to have a lyxasciistreambuf...) -- Lgb