-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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" | ||
] | ||
``` |