fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
93d25eb
)
Bugfix
author
Radek Czajka
<rczajka@rczajka.pl>
Tue, 23 May 2023 11:11:44 +0000
(13:11 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Tue, 23 May 2023 11:11:44 +0000
(13:11 +0200)
src/librarian/cover.py
patch
|
blob
|
history
diff --git
a/src/librarian/cover.py
b/src/librarian/cover.py
index
b60ec34
..
4fd3d45
100644
(file)
--- a/
src/librarian/cover.py
+++ b/
src/librarian/cover.py
@@
-72,7
+72,7
@@
class TextBox(object):
break
line = parts[0]
break
line = parts[0]
- if line[-2] == ' ':
+ if l
en(line) > 2 and l
ine[-2] == ' ':
line = line[:-2]
line_width = self.draw.textsize(line, font=font)[0]
line = line[:-2]
line_width = self.draw.textsize(line, font=font)[0]