--- a/candolint/handlers.py Tue Aug 23 14:30:08 2016 +0800
+++ b/candolint/handlers.py Tue Aug 23 15:04:33 2016 +0800
parts.append(('#777', 62, 30.5, 'unknown'))
elif check.errors or check.warnings:
- msg = self.locale.translate('{} error', '{} errors', check.errors)
+ msg = self.locale.translate(
+ '{} error', '{} errors', check.errors)
text = msg.format(check.errors)
width = 7 + 6 * len(text) + 7
parts.append(('#da314b', width, width // 2 - 0.5, text))
- msg = self.locale.translate('{} warning', '{} warnings', check.warnings)
+ msg = self.locale.translate(
+ '{} warning', '{} warnings', check.warnings)
text = msg.format(check.warnings)
width = 7 + 6 * len(text) + 9
parts.append(('#faa732', width, width // 2 + 0.5, text))