From da9638e6a372d2707cf10d459b8444292ab9de27 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Sun, 12 May 2019 14:19:01 +0200 Subject: 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 --- test/command/5178.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/command') diff --git a/test/command/5178.md b/test/command/5178.md index 9df3f6cf8..57aace945 100644 --- a/test/command/5178.md +++ b/test/command/5178.md @@ -7,19 +7,19 @@ unsafePerformIO main ^D #+BEGIN_SRC haskell -n 42 - main = putStrLn "Hello World!" - unsafePerformIO main + main = putStrLn "Hello World!" + unsafePerformIO main #+END_SRC ``` ``` % pandoc -f org -t native #+BEGIN_SRC lisp -n 20 - (+ 1 1) + (+ 1 1) #+END_SRC #+BEGIN_SRC lisp +n 10 - (+ 2 2) + (+ 2 2) #+END_SRC ^D [CodeBlock ("",["commonlisp","numberLines"],[("org-language","lisp"),("startFrom","20")]) "(+ 1 1)\n" @@ -32,10 +32,10 @@ ,CodeBlock ("",["commonlisp","numberLines","continuedSourceBlock"],[("org-language","lisp"),("startFrom","10")]) "(+ 2 2)\n"] ^D #+BEGIN_SRC lisp -n 20 - (+ 1 1) + (+ 1 1) #+END_SRC #+BEGIN_SRC lisp +n 10 - (+ 2 2) + (+ 2 2) #+END_SRC ``` -- cgit v1.2.3