# HG changeset patch # User Augie Fackler # Date 1495992962 14400 # Node ID 043c147c928d486b3f80de340eff99ae0529d1c9 # Parent 6e9a2c9c1f3754b83aa805bb394530a20a56f67d minirst: grab a byte, not an int, for the underline style diff -r 6e9a2c9c1f37 -r 043c147c928d mercurial/minirst.py --- a/mercurial/minirst.py Sun May 28 13:41:42 2017 -0400 +++ b/mercurial/minirst.py Sun May 28 13:36:02 2017 -0400 @@ -356,7 +356,7 @@ len(block['lines']) == 2 and encoding.colwidth(block['lines'][0]) == len(block['lines'][1]) and _sectionre.match(block['lines'][1])): - block['underline'] = block['lines'][1][0] + block['underline'] = block['lines'][1][0:1] block['type'] = 'section' del block['lines'][1] return blocks