Download:
child 215:7716c8ee7c85
parent 213:adc4e59eb470
214:1f169334834b
Anton Shestakov <av6@dwimlabs.net>, Tue, 23 Aug 2016 15:04:33 +0800
viewer: split long lines in StatusHandler

1 файлов изменено, 4 вставок(+), 2 удалений(-) [+]
candolint/handlers.py file | annotate | diff | comparison | revisions
--- a/candolint/handlers.py Tue Aug 23 14:30:08 2016 +0800
+++ b/candolint/handlers.py Tue Aug 23 15:04:33 2016 +0800
@@ -115,12 +115,14 @@
parts.append(('#777', 62, 30.5, 'unknown'))
elif check.errors or check.warnings:
if check.errors:
- 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))
if check.warnings:
- 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))