Abdelrazak Younes a écrit :
I think I have found the problem. Please test the updated attached patch.
Oups, sorry, wrong patch. Forget about it. This need more investigation, so I'll just do the full update for now in LyXText::deleteEmptyParagraphMechanism and commit the resulting patch.
Question: does somebody know how to test if the current buffer has only one paragraph? The current test doesn't work:
if (it.pit() == 0) { it.pos() = 0; if (it == par_iterator_begin(buf.inset()) && it.plist().size() <= 1) { cout << "unique par" << endl; return false; } } Abdel.