aboutsummaryrefslogtreecommitdiff
path: root/test/writer.org
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2019-05-12 14:19:01 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2019-05-12 14:49:52 +0200
commitda9638e6a372d2707cf10d459b8444292ab9de27 (patch)
tree7f53cc2a9b0210b2386948f071a66618afc8a357 /test/writer.org
parent5c7ad59ffe7c4e6aec62d16611ccb84a9ce02472 (diff)
downloadpandoc-da9638e6a372d2707cf10d459b8444292ab9de27.tar.gz
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
Diffstat (limited to 'test/writer.org')
-rw-r--r--test/writer.org40
1 files changed, 20 insertions, 20 deletions
diff --git a/test/writer.org b/test/writer.org
index cd2be4574..eb15bc5fa 100644
--- a/test/writer.org
+++ b/test/writer.org
@@ -92,9 +92,9 @@ E-mail style:
Code in a block quote:
#+BEGIN_EXAMPLE
- sub status {
- print "working";
- }
+ sub status {
+ print "working";
+ }
#+END_EXAMPLE
A list:
@@ -127,21 +127,21 @@ And a following paragraph.
Code:
#+BEGIN_EXAMPLE
- ---- (should be four hyphens)
+ ---- (should be four hyphens)
- sub status {
- print "working";
- }
+ sub status {
+ print "working";
+ }
- this code block is indented by one tab
+ this code block is indented by one tab
#+END_EXAMPLE
And:
#+BEGIN_EXAMPLE
- this code block is indented by two tabs
+ this code block is indented by two tabs
- These should not be escaped: \$ \\ \> \[ \{
+ These should not be escaped: \$ \\ \> \[ \{
#+END_EXAMPLE
--------------
@@ -364,7 +364,7 @@ Multiple blocks with italics:
- /orange/ :: orange fruit
#+BEGIN_EXAMPLE
- { orange code block }
+ { orange code block }
#+END_EXAMPLE
#+BEGIN_QUOTE
@@ -463,15 +463,15 @@ foo
This should be a code block, though:
#+BEGIN_EXAMPLE
- <div>
- foo
- </div>
+ <div>
+ foo
+ </div>
#+END_EXAMPLE
As should this:
#+BEGIN_EXAMPLE
- <div>foo</div>
+ <div>foo</div>
#+END_EXAMPLE
Now, nested:
@@ -502,7 +502,7 @@ Multiline:
Code block:
#+BEGIN_EXAMPLE
- <!-- Comment -->
+ <!-- Comment -->
#+END_EXAMPLE
Just plain comment, with trailing spaces on the line:
@@ -514,7 +514,7 @@ Just plain comment, with trailing spaces on the line:
Code:
#+BEGIN_EXAMPLE
- <hr />
+ <hr />
#+END_EXAMPLE
Hr's:
@@ -751,7 +751,7 @@ Indented [[/url][thrice]].
This should [not][] be a link.
#+BEGIN_EXAMPLE
- [not]: /url
+ [not]: /url
#+END_EXAMPLE
Foo [[/url/][bar]].
@@ -792,7 +792,7 @@ An e-mail address: [[mailto:nobody@nowhere.net][nobody@nowhere.net]]
Auto-links should not occur here: =<http://example.com/>=
#+BEGIN_EXAMPLE
- or here: <http://example.com/>
+ or here: <http://example.com/>
#+END_EXAMPLE
--------------
@@ -837,7 +837,7 @@ This paragraph should not be part of the note, as it is not indented.
(as with list items).
#+BEGIN_EXAMPLE
- { <code> }
+ { <code> }
#+END_EXAMPLE
If you want, you can indent every line, but you can also be lazy and