Mercurial > hg
changeset 32525:043c147c928d
minirst: grab a byte, not an int, for the underline style
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 28 May 2017 13:36:02 -0400 |
parents | 6e9a2c9c1f37 |
children | 9d08283946f0 |
files | mercurial/minirst.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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