diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index ea51f973e2f2..793da73951e0 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/layout/generic/nsTextFrame.cpp @@ -6753,7 +6753,7 @@ nsTextFrame::HasTerminalNewline() const if (tc && mContentLength > 0) { const nsTextFragment* frag = tc->Text(); PRUnichar ch = frag->CharAt(mContentOffset + mContentLength - 1); - if (ch == '\n' || ch == '\r') + if (ch == '\n') return PR_TRUE; } return PR_FALSE;