Org Babel Results
tags: src-block babel results indentation example-block fixed-block
Description/Summary
Testing the export of Org Babel#+results:
blocks with and without
wrapping with HTML attributes.
Content
“Fixed block” Results block #
Below also tests that the indentation in results blocks is preserved.
str = 'a\tbc'
print(str[1:])
bc
The whitespace before “bc” in the results block above should be preserved.
“Fixed block” Results block with #+attr_html
#
str = 'd\tef'
print(str[1:])
ef
Above results block will be in blue text.
“Example block” Results block #
echo "abc\ndef\nghi\njkl\nmno\npqr\nstu\nvwx\nyz0\n123\n456\n789"
abc
def
ghi
jkl
mno
pqr
stu
vwx
yz0
123
456
789
“Example block” Results block with #+attr_html
#
echo "ABC\nDEF\nGHI\nJKL\nMNO\nPQR\nSTU\nVWX\nYZ0\n123\n456\n789"
ABC
DEF
GHI
JKL
MNO
PQR
STU
VWX
YZ0
123
456
789
Above results block will be in green text.
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Org Babel Results" | |
Title | "Org Babel Results" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/posts/org-babel-results/" | |
RelPermalink | "/posts/org-babel-results/" | |
Data |
| |
NextPage | Only custom resource params | |
PrevPage | Org Cite Basic Example | |
NextInSection | Only custom resource params | |
PrevInSection | Org Cite Basic Example |
Page Params (Debug)
Key | Type | Value |
---|---|---|
description | string | " Testing the export of Org Babel `#+results:` blocks with and without\n wrapping with HTML attributes.\n " |
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2022-02-24 22:49:25 -0500 -0500 |
tags | []string | "src-block" "babel" "results" "indentation" "example-block" "fixed-block" |
title | string | "Org Babel Results" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "4ae40f629b086127df7a34f74b1b2ace" |
BaseFileName | "org-babel-results" |
TranslationBaseName | "org-babel-results" |
Lang | "en" |
Section | "posts" |
LogicalName | "org-babel-results.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/org-babel-results.md" |