diff options
| author | Albert Krewinkel <[email protected]> | 2022-08-22 09:48:50 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2022-08-22 12:53:57 +0200 |
| commit | a31cf9a005f3d7dcd3f5d16262f40d8b3e406776 (patch) | |
| tree | 6069cdb2f750c708bec72fe7ec4f4266212ec196 /test | |
| parent | 1de40c62fc1220b689389e6c2eaa76f4936363fe (diff) | |
Org writer: keep code block attributes as header args.
This allows to keep more information in the resulting `src` blocks,
making it easier to roundtrip from or through Org. Org babel ignores
unknown header arguments.
Diffstat (limited to 'test')
| -rw-r--r-- | test/Tests/Writers/Org.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Tests/Writers/Org.hs b/test/Tests/Writers/Org.hs index cc957fc6c..c36e761cd 100644 --- a/test/Tests/Writers/Org.hs +++ b/test/Tests/Writers/Org.hs @@ -76,5 +76,14 @@ tests = , "return True" , "#+end_src" ] + + , "attributes" + =: codeBlockWith ("", ["python"], [("cache", "yes"), ("noweb", "yes")]) + "'Hello'" + =?> T.unlines + [ "#+begin_src python :cache yes :noweb yes" + , "'Hello'" + , "#+end_src" + ] ] ] |
