Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve leading whitespace in Org Babel Result block exports
- Loading branch information
1 parent
841255a
commit f0becd6
Showing
3 changed files
with
41 additions
and
0 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
16 changes: 16 additions & 0 deletions
16
example-site/content/posts/org-babel-results-preserve-indent.md
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,16 @@ | ||
+++ | ||
title = "Org Babel Results" | ||
tags = ["src-block"] | ||
draft = false | ||
+++ | ||
|
||
```python | ||
str = 'a\tbc' | ||
print(str[1:]) | ||
``` | ||
|
||
```text | ||
bc | ||
``` | ||
|
||
The whitespace before "bc" in the results block above should be preserved. |
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