comparison mercurial/minirst.py @ 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 ff25b89a0776
children 32a563a01da4
comparison
equal deleted inserted replaced
31711:472d726c1afd 31712:b3640334a43a
450 blocks[i]['admonitiontitle'] = admonitiontitle 450 blocks[i]['admonitiontitle'] = admonitiontitle
451 del blocks[i]['lines'][0] 451 del blocks[i]['lines'][0]
452 i = i + 1 452 i = i + 1
453 return blocks 453 return blocks
454 454
455 _admonitiontitles = {'attention': _('Attention:'), 455 _admonitiontitles = {
456 'caution': _('Caution:'), 456 'attention': _('Attention:'),
457 'danger': _('!Danger!') , 457 'caution': _('Caution:'),
458 'error': _('Error:'), 458 'danger': _('!Danger!'),
459 'hint': _('Hint:'), 459 'error': _('Error:'),
460 'important': _('Important:'), 460 'hint': _('Hint:'),
461 'note': _('Note:'), 461 'important': _('Important:'),
462 'tip': _('Tip:'), 462 'note': _('Note:'),
463 'warning': _('Warning!')} 463 'tip': _('Tip:'),
464 'warning': _('Warning!'),
465 }
464 466
465 def formatoption(block, width): 467 def formatoption(block, width):
466 desc = ' '.join(map(str.strip, block['lines'])) 468 desc = ' '.join(map(str.strip, block['lines']))
467 colwidth = encoding.colwidth(block['optstr']) 469 colwidth = encoding.colwidth(block['optstr'])
468 usablewidth = width - 1 470 usablewidth = width - 1