#4586 enhancement new
Code-listings generated by lore2sphinx should include line-numbers
|Reported by:||Screwtape||Owned by:|
|Priority:||normal||Milestone:||Lore to Sphinx|
exarkun, in ticket #4566 comment 5:
One thing I noticed while reviewing this, though, is that code listings no longer have line numbers. Could you file a ticket for that?
It looks like Lore puts line-numbers on <pre class="python"> blocks, but not on python-interpreter or shell blocks.
From what I can see in the Sphinx docs, this can be enabled on a per-document basis with a fragment of code like:
.. highlight:: python :linenothreshold: 1
...but it would be even better if that could be set as a project-wide setting; I'm not sure if that's possible.