[PATCH 1 of 3] minirst: reindent _admonitiontitles

Gregory Szorc gregory.szorc at gmail.com
Thu Mar 30 03:19:40 UTC 2017


# HG changeset patch
# User Gregory Szorc <gregory.szorc at 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.

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']))


More information about the Mercurial-devel mailing list