def fix_rst_heading(heading, below):
if len(below) == <NUM_LIT:0>:<EOL><INDENT>return below<EOL><DEDENT>first = below[<NUM_LIT:0>]<EOL>if first not in '<STR_LIT>':<EOL><INDENT>return below<EOL><DEDENT>if not len(below) == len([char for char in below<EOL>if char == first]):<EOL><INDENT>return below<EOL><DEDENT>below = first * len(heading)<EOL>return below<EOL>
If the 'below' line looks like a reST line, give it the correct length.

    This allows for different characters being used as header lines.