Skip to content

Commit ad5e7a0

Browse files
committed
tools/gen-cpydiff: Use case description as 3rd-level heading.
This is required to easily giving links to a particular difference case. Also, add RST anchors to allow cases to cross-reference each other.
1 parent 5f65ad8 commit ad5e7a0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/gen-cpydiff.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ def gen_rst(results):
185185
rst.write(RSTCHARS[min(i, len(RSTCHARS)-1)] * len(section[i]))
186186
rst.write('\n\n')
187187
class_ = section
188-
rst.write('**' + output.desc + '**\n\n')
188+
rst.write('.. _cpydiff_%s:\n\n' % output.name.rsplit('.', 1)[0])
189+
rst.write(output.desc + '\n')
190+
rst.write('~' * len(output.desc) + '\n\n')
189191
if output.cause != 'Unknown':
190192
rst.write('**Cause:** ' + output.cause + '\n\n')
191193
if output.workaround != 'Unknown':

0 commit comments

Comments
 (0)