pandoc/test/command/5178.md
Albert Krewinkel da9638e6a3
Org writer: always indent src blocks content by 2 spaces
Emacs always uses two spaces when indenting the content of src blocks,
e.g., when exiting a `C-c '` edit-buffer. Pandoc used to indent contents
by the space-equivalent of one tab, but now always uses two spaces, too.

Closes: #5440
2019-05-12 14:49:52 +02:00

930 B

% pandoc -f rst -t org
.. code:: haskell
   :number-lines: 42

   main = putStrLn "Hello World!"
   unsafePerformIO main
^D
#+BEGIN_SRC haskell -n 42
  main = putStrLn "Hello World!"
  unsafePerformIO main
#+END_SRC
% pandoc -f org -t native
#+BEGIN_SRC lisp -n 20
  (+ 1 1)
#+END_SRC

#+BEGIN_SRC lisp +n 10
  (+ 2 2)
#+END_SRC
^D
[CodeBlock ("",["commonlisp","numberLines"],[("org-language","lisp"),("startFrom","20")]) "(+ 1 1)\n"
,CodeBlock ("",["commonlisp","numberLines","continuedSourceBlock"],[("org-language","lisp"),("startFrom","10")]) "(+ 2 2)\n"]
% pandoc -f native -t org
[CodeBlock ("",["commonlisp","numberLines"],[("org-language","lisp"),("startFrom","20")]) "(+ 1 1)\n"
,CodeBlock ("",["commonlisp","numberLines","continuedSourceBlock"],[("org-language","lisp"),("startFrom","10")]) "(+ 2 2)\n"]
^D
#+BEGIN_SRC lisp -n 20
  (+ 1 1)
#+END_SRC

#+BEGIN_SRC lisp +n 10
  (+ 2 2)
#+END_SRC