Bug 1328093 - HTMLEditor::InsertTextWithQuotations() should include the first line break into the <span> it creates. r=masayuki

--HG--
extra : rebase_source : 700f9369f435ba14fe7a5879b0e01bcb599a60d9
This commit is contained in:
Jorg K 2017-01-10 01:50:00 -05:00
Родитель ab68dae81c
Коммит b15f9d079d
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1775,6 +1775,13 @@ HTMLEditor::InsertTextWithQuotations(const nsAString& aStringToInsert)
// the quoted block.
if (curHunkIsQuoted) {
lineStart = firstNewline;
// 'firstNewline' points to the first '\n'. We want to
// ensure that this first newline goes into the hunk
// since quoted hunks can be displayed as blocks
// (and the newline should become invisible in this case).
// So the next line needs to start at the next character.
lineStart++;
}
}