Skip to content

Commit

Permalink
Minor fix for chafa.py image conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
joouha committed Feb 5, 2023
1 parent cbd2c73 commit abea27a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 7 additions & 4 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ Changelog

Notable changes to this project will be documented in this file.

********
Upcoming
********
*******************
v2.3.1 (2023-02-05)
*******************

Added
=====

- Warn about unrecognised configuration options in the log

----
Fixed
=====

- Fix minor issue with ``chafa.py`` image renderer

*******************
v2.3.0 (2023-02-03)
Expand Down
3 changes: 1 addition & 2 deletions euporie/core/convert/formats/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ def chafa_convert_py(
# Configure the canvas geometry based on our cell size
config.cell_width, config.cell_height = get_app().term_info.cell_size_px
# Set the background color
if bg is not None:
color = bg.lstrip("#")
if bg and (color := bg.lstrip("#")):
config.bg_color = (
int(color[0:2], 16),
int(color[2:4], 16),
Expand Down

0 comments on commit abea27a

Please sign in to comment.