From 914af8665fb4c8c37ff0b3a1e93ad0cd1e95bd5a Mon Sep 17 00:00:00 2001 From: Mirko Brodesser Date: Wed, 28 Aug 2019 08:23:23 +0000 Subject: [PATCH] Bug 1576903: Remove debugging comment added accidentally in bug 1575218. r=hsivonen Differential Revision: https://phabricator.services.mozilla.com/D43607 --HG-- extra : moz-landing-system : lando --- dom/base/nsPlainTextSerializer.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dom/base/nsPlainTextSerializer.cpp b/dom/base/nsPlainTextSerializer.cpp index afb34ca55e27..5f0bd9909c80 100644 --- a/dom/base/nsPlainTextSerializer.cpp +++ b/dom/base/nsPlainTextSerializer.cpp @@ -1225,10 +1225,7 @@ void nsPlainTextSerializer::AddToLine(const char16_t* aLineFragment, goodSpace = mLineBreaker->Prev(mCurrentLineContent.mValue.get(), mCurrentLineContent.mValue.Length(), goodSpace); - if (goodSpace != - NS_LINEBREAKER_NEED_MORE_TEXT && // MB: surprisingly goodSpace - // == - // NS_LINEBREAKER_NEED_MORE_TEXT. + if (goodSpace != NS_LINEBREAKER_NEED_MORE_TEXT && nsCRT::IsAsciiSpace( mCurrentLineContent.mValue.CharAt(goodSpace - 1))) { --goodSpace; // adjust the position since line breaker returns a