mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-03 06:05:45 +00:00
Tabs are now preserved in the contents of *src* blocks if the the block has the `-i` flag. Fixes: #10071
16 lines
330 B
Markdown
16 lines
330 B
Markdown
Leading tabs must be preserved in org mode *src* blocks with the `-i`
|
|
flag when pandoc is called with `-p`/`--preserve-tabs`.
|
|
|
|
```
|
|
% pandoc -f org -t native --preserve-tabs
|
|
#+begin_src makefile -i
|
|
%.o: %.cpp
|
|
$(CXX) -o $@ $<
|
|
#+end_src
|
|
^D
|
|
[ CodeBlock
|
|
( "" , [ "makefile" ] , [] )
|
|
"%.o: %.cpp\n\t$(CXX)\t-o\t$@\t$<\n"
|
|
]
|
|
```
|