Mercurial > hg
changeset 31712:b3640334a43a
minirst: reindent _admonitiontitles
I don't like the verical indent.
While I was here, I cleaned up some whitespace and added a trailing
comma on the last element.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 29 Mar 2017 19:59:47 -0700 |
parents | 472d726c1afd |
children | 32a563a01da4 |
files | mercurial/minirst.py |
diffstat | 1 files changed, 11 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/minirst.py Tue Mar 28 06:23:28 2017 +0200 +++ b/mercurial/minirst.py Wed Mar 29 19:59:47 2017 -0700 @@ -452,15 +452,17 @@ i = i + 1 return blocks -_admonitiontitles = {'attention': _('Attention:'), - 'caution': _('Caution:'), - 'danger': _('!Danger!') , - 'error': _('Error:'), - 'hint': _('Hint:'), - 'important': _('Important:'), - 'note': _('Note:'), - 'tip': _('Tip:'), - 'warning': _('Warning!')} +_admonitiontitles = { + 'attention': _('Attention:'), + 'caution': _('Caution:'), + 'danger': _('!Danger!'), + 'error': _('Error:'), + 'hint': _('Hint:'), + 'important': _('Important:'), + 'note': _('Note:'), + 'tip': _('Tip:'), + 'warning': _('Warning!'), +} def formatoption(block, width): desc = ' '.join(map(str.strip, block['lines']))