wymeditor/wymeditor — pull request #357 by DragonJake (2012-06-18 11:14:28+00:00)
Title: Fixed destructive deleting of newline characters in li content processing

Hi again,

today I was hunting a bug which made tons of extra work to our editors. In certain circumstances a text from MS Word is somewhere delimited with newline characters (`\r` and `\n`). This is completely OK from perspective of HTML until `WYMeditor.update()` method is called.

Due the inappropriate regex pattern first newline is replaced by nothing and the others are left untouched. My patch replaces all consecutive newlines with a single space which should prevent any text damage (e.g.: word1word2). This happens only in a text inside `
`.