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

cell() & multi_cell() horizontal centering #809

Merged
merged 1 commit into from
Jun 7, 2023
Merged

Conversation

Lucas-C
Copy link
Member

@Lucas-C Lucas-C commented Jun 7, 2023

Added

  • FPDF.multi_cell(): has a new optional center parameter to position the cell horizontally at the center of the page

Deprecated

  • the center optional parameter of FPDF.cell() is no more deprecated, as it allows for horizontal positioning, which is different from text alignment control with align="C"

@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (6011e29) 93.33% compared to head (a645ec1) 93.33%.

❗ Current head a645ec1 differs from pull request most recent head f46e9d1. Consider uploading reports for the commit f46e9d1 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #809      +/-   ##
==========================================
- Coverage   93.33%   93.33%   -0.01%     
==========================================
  Files          27       27              
  Lines        7378     7377       -1     
  Branches     1329     1329              
==========================================
- Hits         6886     6885       -1     
  Misses        309      309              
  Partials      183      183              
Impacted Files Coverage Δ
fpdf/line_break.py 99.20% <ø> (ø)
fpdf/fpdf.py 92.62% <100.00%> (-0.01%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Lucas-C Lucas-C merged commit 7154186 into master Jun 7, 2023
@Lucas-C Lucas-C deleted the cell-centering branch June 14, 2023 11:45
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.

1 participant