Add support `\n` for column texts
This commit is contained in:
LEv145
2024-02-23 01:09:19 +02:00
committed by GitHub
parent 9591638263
commit 6c93712961
+1 -1
View File
@@ -109,7 +109,7 @@ def _create_grid_annotation(
+ font.getlength(WIDEST_LETTER)*2
)
if column_texts:
top_padding = max(col_text.count('\n') for col_text in column_texts) * int(font.size) + int(font.size * 2)
top_padding = max(elem.count("\n") for elem in column_texts) * int(font.size) + int(font.size * 2)
image = Image.new(
"RGB",