зеркало из https://github.com/mozilla/pjs.git
fix for 82813: tweaking editor whitespace handling to behave better when deleting in PRE
r=brade; sr=kin; a=asa
This commit is contained in:
Родитель
c109bacbbd
Коммит
d9e7aab696
|
@ -1411,7 +1411,7 @@ nsWSRunObject::PrepareToDeleteRangePriv(nsWSRunObject* aEndObject)
|
|||
res = DeleteChars(beforeRun->mStartNode, beforeRun->mStartOffset, mNode, mOffset);
|
||||
NS_ENSURE_SUCCESS(res, res);
|
||||
}
|
||||
else if (beforeRun && (beforeRun->mType == eNormalWS) && mPRE)
|
||||
else if (beforeRun && (beforeRun->mType == eNormalWS) && !mPRE)
|
||||
{
|
||||
if ( (afterRun && (afterRun->mType == eTrailingWS)) ||
|
||||
(afterRun && (afterRun->mType == eNormalWS)) ||
|
||||
|
|
Загрузка…
Ссылка в новой задаче