fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change default cover.
[librarian.git]
/
src
/
librarian
/
cover.py
diff --git
a/src/librarian/cover.py
b/src/librarian/cover.py
index
b60ec34
..
0e9b079
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]
@@
-989,7
+989,7
@@
class FactoryCover(LogoWLCover):
from librarian.covers.marquise import MarquiseCover, LabelMarquiseCover
COVER_CLASSES = {
from librarian.covers.marquise import MarquiseCover, LabelMarquiseCover
COVER_CLASSES = {
- '
default
': LogoWLCover,
+ '
legacy
': LogoWLCover,
'kmlu': KMLUCover,
'mpw': MPWCover,
'atrium': AtriumCover,
'kmlu': KMLUCover,
'mpw': MPWCover,
'atrium': AtriumCover,
@@
-1000,6
+1000,7
@@
COVER_CLASSES = {
'factory': FactoryCover,
'm': MarquiseCover,
'm-label': LabelMarquiseCover,
'factory': FactoryCover,
'm': MarquiseCover,
'm-label': LabelMarquiseCover,
+ 'default': MarquiseCover,
}
}