Ref: https://github.com/kaushalmodi/ox-hugo/issues/319master
parent
81e29a045d
commit
a9913113e0
3 changed files with 73 additions and 19 deletions
@ -1,16 +0,0 @@ |
||||
+++ |
||||
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. |
||||
@ -0,0 +1,44 @@ |
||||
+++ |
||||
title = "Org Babel Results" |
||||
tags = ["src-block", "babel", "results", "indentation", "example-block", "fixed-block"] |
||||
draft = false |
||||
+++ |
||||
|
||||
## Small Results block {#small-results-block} |
||||
|
||||
Below also tests that the indentation in **results** blocks is |
||||
preserved. |
||||
|
||||
```python |
||||
str = 'a\tbc' |
||||
print(str[1:]) |
||||
``` |
||||
|
||||
```text |
||||
bc |
||||
``` |
||||
|
||||
The whitespace before "bc" in the results block above should be |
||||
preserved. |
||||
|
||||
|
||||
## Big Results block {#big-results-block} |
||||
|
||||
```nim |
||||
echo "abc\ndef\nghi\njkl\nmno\npqr\nstu\nvwx\nyz0\n123\n456\n789" |
||||
``` |
||||
|
||||
```text |
||||
abc |
||||
def |
||||
ghi |
||||
jkl |
||||
mno |
||||
pqr |
||||
stu |
||||
vwx |
||||
yz0 |
||||
123 |
||||
456 |
||||
789 |
||||
``` |
||||
Loading…
Reference in new issue