Skip to content

Commit

Permalink
v2.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed Apr 3, 2023
1 parent 71b1cfb commit 3f72a7b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ repos:
- id: black
- repo: local
hooks:
- id: no-print-in-sources
name: Ensure no print() statement appears in fpdf2 sources
language: pygrep
entry: print\(
files: ^fpdf/.*\.py$
exclude: fpdf/util.py
- id: no-generate-true
name: Ensure no generate=True is left in a call to assert_pdf_equal()
language: pygrep
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ in order to get warned about deprecated features used in your code.

This can also be enabled programmatically with `warnings.simplefilter('default', DeprecationWarning)`.

## [2.7.3] - Not released yet
## [2.7.4] - Not released yet

## [2.7.3] - 2023-04-03
- removed a debug `print()` statement left in `output.py:OutputProducer._add_fonts()` 🤦‍♂️ - A rule was also added to `.pre-commit-config.yaml` to avoid this to happen again.

## [2.7.2] - 2023-04-03
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion fpdf/fpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Image:
)

# Public global variables:
FPDF_VERSION = "2.7.2"
FPDF_VERSION = "2.7.3"
PAGE_FORMATS = {
"a3": (841.89, 1190.55),
"a4": (595.28, 841.89),
Expand Down
1 change: 0 additions & 1 deletion fpdf/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,6 @@ def _add_fonts(self):
glyph_names = [
cmap[unicode] for unicode in uni_to_new_code_char if unicode in cmap
]
print(glyph_names)

missing_glyphs = [
chr(unicode)
Expand Down

0 comments on commit 3f72a7b

Please sign in to comment.