Skip to content

Commit

Permalink
style: fix line-length issues of >88 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
miikanissi committed Jun 22, 2024
1 parent 1d762cf commit 2d875ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions zebrafy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""
zebrafy: A Python library for converting PDF and images to Zebra Programming Language (ZPL).
zebrafy: A Python library for converting PDF and images to Zebra Programming Language.
This package provides tools to facilitate the conversion of PDF documents and images into
and from Zebra Programming Language, which is used by Zebra label printers.
This package provides tools to facilitate the conversion of PDF documents and images \
into and from Zebra Programming Language, which is used by Zebra label printers.
"""

try:
Expand Down
5 changes: 4 additions & 1 deletion zebrafy/graphic_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,7 @@ def get_graphic_field(self) -> str:
:returns: Complete graphic field string for ZPL.
"""
return f"^GFA,{self._get_binary_byte_count()},{self._get_graphic_field_count()},{self._get_bytes_per_row()},{self._get_data_string()}^FS"
return (
f"^GFA,{self._get_binary_byte_count()},{self._get_graphic_field_count()},"
f"{self._get_bytes_per_row()},{self._get_data_string()}^FS"
)
2 changes: 1 addition & 1 deletion zebrafy/zebrafy_zpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def to_pdf(self) -> bytes:
page.gen_content()

pdf_bytes = io.BytesIO()
# pypdfium2.PdfDocument save method not to be confused with PIL.Image save method
# pypdfium2.PdfDocument save method not to be confused with PIL.Image save
pdf.save(pdf_bytes)

return pdf_bytes.getvalue()

0 comments on commit 2d875ca

Please sign in to comment.