Refine whitespace stripping in CPDF_TextPage [pdfium : main]

0 views
Skip to first unread message

Aryan Krishnan (Gerrit)

unread,
Feb 20, 2026, 9:10:36 AM (2 days ago) Feb 20
to Pdfium LUCI CQ, pdfium-...@googlegroups.com

Aryan Krishnan voted and added 1 comment

Votes added by Aryan Krishnan

Commit-Queue+1

1 comment

File fpdfsdk/fpdf_text_embeddertest.cpp
Line 2386, Patchset 5 (Latest): EXPECT_EQ(3051, FPDFText_CountChars(textpage.get()));
Aryan Krishnan . unresolved

I checked with a healthy amount of logging; we're successfully nuking the spaces, even if the CRLFs are still hanging around to keep the count at 3051.

My laptop’s fans are currently staging a protest against the chromium build process (although PDFium builds and tests pass). Can someone verify this looks good on the chromium-end. Thanks!

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: I6e3ab9ff2530c24bc5ed65b59670fc9ed639622d
Gerrit-Change-Number: 143472
Gerrit-PatchSet: 5
Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Comment-Date: Fri, 20 Feb 2026 14:10:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
unsatisfied_requirement
open
diffy

Aryan Krishnan (Gerrit)

unread,
Feb 20, 2026, 9:14:46 AM (2 days ago) Feb 20
to Pdfium LUCI CQ, pdfium-...@googlegroups.com

Aryan Krishnan added 1 comment

File fpdfsdk/fpdf_text_embeddertest.cpp
Line 2386, Patchset 5 (Latest): EXPECT_EQ(3051, FPDFText_CountChars(textpage.get()));
Aryan Krishnan . unresolved

I checked with a healthy amount of logging; we're successfully nuking the spaces, even if the CRLFs are still hanging around to keep the count at 3051.

My laptop’s fans are currently staging a protest against the chromium build process (although PDFium builds and tests pass). Can someone verify this looks good on the chromium-end. Thanks!

Aryan Krishnan

Edit: We are removing the additional spaces at the top (causing the regression) the other spaces remain as is and rest should work as expected. Not 100% sure if the regression is fixed when building chromium. Please let me know if building the full chromium with this fixes this regression. Thanks!

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: I6e3ab9ff2530c24bc5ed65b59670fc9ed639622d
Gerrit-Change-Number: 143472
Gerrit-PatchSet: 5
Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Comment-Date: Fri, 20 Feb 2026 14:14:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Aryan Krishnan <aryankr...@gmail.com>
unsatisfied_requirement
open
diffy

Aryan Krishnan (Gerrit)

unread,
Feb 20, 2026, 9:15:35 AM (2 days ago) Feb 20
to Lei Zhang, Tom Sepez, Andy Phan, Pdfium LUCI CQ, pdfium-...@googlegroups.com
Attention needed from Andy Phan, Lei Zhang and Tom Sepez

Aryan Krishnan added 1 comment

File fpdfsdk/fpdf_text_embeddertest.cpp
Line 2386, Patchset 5 (Latest): EXPECT_EQ(3051, FPDFText_CountChars(textpage.get()));
Aryan Krishnan . resolved

I checked with a healthy amount of logging; we're successfully nuking the spaces, even if the CRLFs are still hanging around to keep the count at 3051.

My laptop’s fans are currently staging a protest against the chromium build process (although PDFium builds and tests pass). Can someone verify this looks good on the chromium-end. Thanks!

Aryan Krishnan

Edit: We are removing the additional spaces at the top (causing the regression) the other spaces remain as is and rest should work as expected. Not 100% sure if the regression is fixed when building chromium. Please let me know if building the full chromium with this fixes this regression. Thanks!

Aryan Krishnan

Resolving this. Reopen if it is still regressing on the full chromium build.

Open in Gerrit

Related details

Attention is currently required from:
  • Andy Phan
  • Lei Zhang
  • Tom Sepez
Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I6e3ab9ff2530c24bc5ed65b59670fc9ed639622d
    Gerrit-Change-Number: 143472
    Gerrit-PatchSet: 5
    Gerrit-Owner: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Andy Phan <andy...@chromium.org>
    Gerrit-Reviewer: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Andy Phan <andy...@chromium.org>
    Gerrit-Comment-Date: Fri, 20 Feb 2026 14:15:30 +0000
    unsatisfied_requirement
    open
    diffy

    Aryan Krishnan (Gerrit)

    unread,
    Feb 20, 2026, 1:26:33 PM (2 days ago) Feb 20
    to Lei Zhang, Tom Sepez, Andy Phan, Pdfium LUCI CQ, pdfium-...@googlegroups.com
    Attention needed from Andy Phan, Lei Zhang and Tom Sepez

    Aryan Krishnan added 1 comment

    Patchset-level comments
    File-level comment, Patchset 5 (Latest):
    Aryan Krishnan . resolved

    Would abandon and make this a reland so that it avoids the merge conflicting.

    Gerrit-Comment-Date: Fri, 20 Feb 2026 18:26:27 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Aryan Krishnan (Gerrit)

    unread,
    Feb 20, 2026, 1:26:42 PM (2 days ago) Feb 20
    to Lei Zhang, Tom Sepez, Andy Phan, Pdfium LUCI CQ, pdfium-...@googlegroups.com

    Aryan Krishnan abandoned this change.

    View Change

    Abandoned Make this a reland of the original CL.

    Aryan Krishnan abandoned this change

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: abandon
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages