-
Notifications
You must be signed in to change notification settings - Fork 265
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
Stop font properties from leaking #384
Conversation
Codecov Report
@@ Coverage Diff @@
## master #384 +/- ##
==========================================
+ Coverage 90.76% 90.82% +0.06%
==========================================
Files 21 20 -1
Lines 6097 6041 -56
Branches 1247 1231 -16
==========================================
- Hits 5534 5487 -47
+ Misses 331 326 -5
+ Partials 232 228 -4
Continue to review full report at Codecov.
|
This PR includes 88 commits: |
I've tried, but Git Desktop repeatedly got confused and I had to cancel the attempt... |
*Values of csv files are converted by position, instead of content * Updated tests to check for regression * Updated documentation and tests to include multiline text.
restrict decimal seperator replacement to float fields
I performed the rebase. Could you check that all is right @gmischler please? Also, seems like many reference PDF files have been impacted by this change: |
I was just doing another rebase attempt myself again, which may have conflicted with yours... There now seem to be a few files included that shouldn't be. And PDFs that aren't listed and explained at the top here should probably not be included. |
Ok, I think it's clean now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code seems quite clearer after this PR, nice and good job!
Thank you very much for the rundown on the affected test files sizes.
However it does not seem totally accurate...
render_styled_newpos.pdf
for example is 15bytes larger.
Would you know why?
Interesting. |
I'm OK to merge this once the conflicts are resolved |
Just a heads-up: I'm planning to remove the useless |
Merged: thank you @gmischler ! |
Fixes #359 (and possibly others)
Checklist:
The GitHub pipeline is OK (green),
meaning that both
pylint
(static code analyzer) andblack
(code formatter) are happy with the changes of this PR.A unit test is covering the code added / modified by this PR
This PR is ready to be merged
[na] In case of a new feature, docstrings have been added, with also some documentation in the
docs/
folderA mention of the change is present in
CHANGELOG.md
The PR description or comment contains a picture of a cute animal (not mandatory but encouraged 🐸)
This solves the problems with leaking state after certain combinations of text output. It replaces several previous attempts to solve similar problems, and does so in a more straightforward and complete way.
Since there were worries about increasing the file size of the resulting PDFs, here's a rundown of the affected test files:
same size:
shorter
longer