break
line = parts[0]
- if line[-2] == ' ':
+ if len(line) > 2 and line[-2] == ' ':
line = line[:-2]
line_width = self.draw.textsize(line, font=font)[0]
from librarian.covers.marquise import MarquiseCover, LabelMarquiseCover
COVER_CLASSES = {
- 'default': LogoWLCover,
+ 'legacy': LogoWLCover,
'kmlu': KMLUCover,
'mpw': MPWCover,
'atrium': AtriumCover,
'factory': FactoryCover,
'm': MarquiseCover,
'm-label': LabelMarquiseCover,
+ 'default': MarquiseCover,
}