fix word breaking problem. r=mjudge. treat all word breaking as the same.

This commit is contained in:
ftang%netscape.com 2000-01-11 22:07:13 +00:00
Родитель 8384beb244
Коммит 573b760f5c
2 изменённых файлов: 20 добавлений и 0 удалений

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

@ -450,6 +450,11 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
PRBool isWhitespace = PR_FALSE;
PRUnichar* result = nsnull;
// Fix word breaking problem w/ PREFORMAT and PREWRAP
// for word breaking, we should really go to the normal code
if((! aForLineBreak) && (eNormal != mMode))
mMode = eNormal;
while (offset < fragLen) {
PRUnichar firstChar = frag->CharAt(offset);
@ -764,6 +769,11 @@ nsTextTransformer::GetPrevWord(PRBool aInWord,
PRBool isWhitespace = PR_FALSE;
PRUnichar* result = nsnull;
// Fix word breaking problem w/ PREFORMAT and PREWRAP
// for word breaking, we should really go to the normal code
if((! aForLineBreak) && (eNormal != mMode))
mMode = eNormal;
while (--offset >= 0) {
PRUnichar firstChar = frag->CharAt(offset);

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

@ -450,6 +450,11 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
PRBool isWhitespace = PR_FALSE;
PRUnichar* result = nsnull;
// Fix word breaking problem w/ PREFORMAT and PREWRAP
// for word breaking, we should really go to the normal code
if((! aForLineBreak) && (eNormal != mMode))
mMode = eNormal;
while (offset < fragLen) {
PRUnichar firstChar = frag->CharAt(offset);
@ -764,6 +769,11 @@ nsTextTransformer::GetPrevWord(PRBool aInWord,
PRBool isWhitespace = PR_FALSE;
PRUnichar* result = nsnull;
// Fix word breaking problem w/ PREFORMAT and PREWRAP
// for word breaking, we should really go to the normal code
if((! aForLineBreak) && (eNormal != mMode))
mMode = eNormal;
while (--offset >= 0) {
PRUnichar firstChar = frag->CharAt(offset);