Add missing literalinclude options documentation

The start-at and end-at options, added in 560b572 for v1.5a1, #625
weren't previously documented. This fixes that.
This commit is contained in:
Nicholas Devenish 2018-04-11 18:10:37 +01:00
parent b2bd9f75a6
commit 5685512e6a

View File

@ -596,7 +596,8 @@ __ http://pygments.org/docs/lexers/
``start-after`` is given as a string option, only lines that follow the
first line containing that string are included. If ``end-before`` is given
as a string option, only lines that precede the first lines containing that
string are included.
string are included. The ``start-at`` and ``end-at`` options behave in a
similar way, but the lines containing the matched string are included.
With lines selected using ``start-after`` it is still possible to use
``lines``, the first allowed line having by convention the line number
@ -638,6 +639,9 @@ __ http://pygments.org/docs/lexers/
Added the ``diff``, ``lineno-match``, ``caption``, ``name``, and
``dedent`` options.
.. versionchanged:: 1.5
Added the ``start-at``, and ``end-at`` options.
.. versionchanged:: 1.6
With both ``start-after`` and ``lines`` in use, the first line as per
``start-after`` is considered to be with line number ``1`` for ``lines``.