Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Error when filling a value with parentheses #2268 #2269

Merged
merged 2 commits into from
Oct 28, 2023

Conversation

KanorUbu
Copy link
Contributor

@KanorUbu KanorUbu commented Oct 25, 2023

Fixes #2268

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9047079) 94.44% compared to head (82cdca0) 94.44%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2269   +/-   ##
=======================================
  Coverage   94.44%   94.44%           
=======================================
  Files          43       43           
  Lines        7634     7635    +1     
  Branches     1506     1506           
=======================================
+ Hits         7210     7211    +1     
  Misses        262      262           
  Partials      162      162           
Files Coverage Δ
pypdf/_writer.py 88.34% <100.00%> (+<0.01%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@pubpub-zz pubpub-zz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for your contribution.
2 comments to complete your work

pypdf/_writer.py Outdated Show resolved Hide resolved
pypdf/_writer.py Outdated Show resolved Hide resolved
@KanorUbu
Copy link
Contributor Author

I've considered your feedback

@stefan6419846
Copy link
Collaborator

Shouldn't we add a test for this as well, at least at a basic level?

@pubpub-zz
Copy link
Collaborator

Shouldn't we add a test for this as well, at least at a basic level?

I've thought about it but the only way is a visual check 🫤. If the test consist in checking replace is working I don't think it worth it

@MartinThoma MartinThoma merged commit 06c1a19 into py-pdf:main Oct 28, 2023
13 checks passed
@MartinThoma
Copy link
Member

Thank you for your contribution @KanorUbu 🙏

If you want, I'll add you to https://pypdf.readthedocs.io/en/latest/meta/CONTRIBUTORS.html

@MartinThoma
Copy link
Member

And thanks @pubpub-zz / @stefan6419846 for the review :-)

MartinThoma added a commit that referenced this pull request Oct 29, 2023
## What's new

### Security (SEC)
-  Infinite recursion when using PdfWriter(clone_from=reader) (#2264) by @Alexhuszagh

### New Features (ENH)
-  Add parameter to select images to be removed (#2214) by @pubpub-zz

### Bug Fixes (BUG)
-  Correctly handle image mode 1 with FlateDecode (#2249) by @stefan6419846
-  Error when filling a value with parentheses #2268 (#2269) by @KanorUbu
-  Handle empty root outline (#2239) by @pubpub-zz

### Documentation (DOC)
-  Improve merging docs (#2247) by @stefan6419846

### Developer Experience (DEV)
-  Test Python 3.7 with cryptopgraphy provider as well (#2276) by @stefan6419846
-  Run CI with windows-latest (#2258) by @MartinThoma
-  Use pytest-xdist (#2254) by @MartinThoma
-  Attribute correct authors in the release notes (#2246) by @stefan6419846

### Maintenance (MAINT)
-  Apply pre-commit hooks (#2277) by @MartinThoma
-  Update requirements + mypy fixes (#2275) by @MartinThoma
-  Explicitly provide Any for IO generic argument (#2272) by @nilehmann

### Testing (TST)
-  Fix test_image_without_pillow in windows environment (#2257) by @pubpub-zz

### Code Style (STY)
-  Remove unused import by @MartinThoma

[Full Changelog](3.16.4...3.17.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when filling a value with parentheses
4 participants