kogmbh/WebODF — pull request #771 by peitschie (2014-08-11 05:12:34+00:00)
Title: Allow merge paragraph to handle unexpected nodes near paragraph boundaries

getTextElements may return some unexpected text nodes if the step filters haven't correctly identified the first/last step in the paragraph. Rather than failing completely in this case as the assert causes, simply log the unexpected items and skip them.

getTextElements itself still needs to be fixed, but the harm caused by such mistakes is slightly reduced in this instance.