by
Changes to 2 files · Browse files at 9efc93ad16e1 Showing diff from parent a9876b0dff53 fd957073e2fa Diff from another changeset...
@@ -221,10 +221,9 @@ return hglib.toutf(ctx.description().replace('\0', ''))
elif item == 'summary':
value = ctx.description().replace('\0', '').split('\n')[0]
- value = hglib.tounicode(value[:80])
if len(value) == 0:
return None
- return hglib.toutf(value)
+ return hglib.toutf(hglib.tounicode(value)[:80])
elif item == 'user':
return hglib.toutf(ctx.user())
elif item == 'dateage':
|
Loading...