Ticket #3486 enhancement closed fixed
Add line numbers to Python listings in documentation
|Reported by:||kehander1||Owned by:|
(diff, github, buildbot, log)
Line numbers in Python listings in the documentation would make it easier to refer to individual lines. It might be argued that such line numbers can easily go out of sync, but since the example listings don't get edited all that often, this does not strike me as much of a concern.
The attached change is a rather brazen kludge, though it does work. When spaces show up at the start of a line (in order to pad the line numbers), lore complains about indentation levels not matching - so this fix precedes the line number with a null character (ALT+255).