Patchwork [1,of,3] minirst: reindent _admonitiontitles

login
register
mail settings
Submitter Gregory Szorc
Date March 30, 2017, 3:19 a.m.
Message ID <f4e8bf5a118604478b37.1490843980@ubuntu-vm-main>
Download mbox | patch
Permalink /patch/19839/
State Accepted
Headers show

Comments

Gregory Szorc - March 30, 2017, 3:19 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1490842787 25200
#      Wed Mar 29 19:59:47 2017 -0700
# Node ID f4e8bf5a118604478b371473f7b610f8252d9752
# Parent  cda83a1bfb3ac3a23cfa158c407be93755c1018e
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.

Patch

diff --git a/mercurial/minirst.py b/mercurial/minirst.py
--- a/mercurial/minirst.py
+++ b/mercurial/minirst.py
@@ -452,15 +452,17 @@  def findadmonitions(blocks, admonitions=
         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']))