зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ab68dae81c
Коммит
b15f9d079d
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче