Merge branch 'bugfix'

This commit is contained in:
Ihor Radchenko 2024-04-22 21:10:13 +03:00
commit 52bde22b9d
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 9 additions and 7 deletions

View File

@ -11615,13 +11615,15 @@ see [[*Structure Templates]] for shortcuts to easily insert code blocks.
#+end_example
Both in =example= and in =src= snippets, you can add a =-n= switch to
the end of the =#+BEGIN= line, to get the lines of the example
numbered. The =-n= takes an optional numeric argument specifying the
starting line number of the block. If you use a =+n= switch, the
numbering from the previous numbered snippet is continued in the
current one. The =+n= switch can also take a numeric argument. This
adds the value of the argument to the last line of the previous block
to determine the starting line number.
the =#+BEGIN= line[fn::In the =src= snippets, switches must be placed
right after the language name and before the [[*Structure of Code
Blocks][header arguments]]], to get the lines of the example numbered.
The =-n= takes an optional numeric argument specifying the starting
line number of the block. If you use a =+n= switch, the numbering
from the previous numbered snippet is continued in the current one.
The =+n= switch can also take a numeric argument. This adds the value
of the argument to the last line of the previous block to determine
the starting line number.
#+begin_example
,#+BEGIN_SRC emacs-lisp -n 20