Files
pandoc/test/command/10071.md
Albert Krewinkel b2755f77ba Org reader: fix parsing of src blocks with an -i flag.
Tabs are now preserved in the contents of *src* blocks if the the block
has the `-i` flag.

Fixes: #10071
2024-08-08 17:01:34 +02:00

330 B

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"
]