summaryrefslogtreecommitdiff
path: root/tests/odt
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@gmail.com>2016-10-26 15:53:33 +0200
committerJesse Rosenthal <jrosenthal@jhu.edu>2016-11-08 09:29:46 -0500
commit13bc573e7f9e0602404dd37fec2c7cd14b5c56ee (patch)
treea00a7be544b104df4544ddfcd5301300476b78cc /tests/odt
parenteced02d70e0a4e8d7dfa4c373a6c4d8a4cc08407 (diff)
Inline code when text has a special style
When a piece of text has a text 'Source_Text' then we assume that this is a piece of the document that represents a code that needs to be inlined. Addapted an odt writer to also reflect that change; previously it was just writing a 'preformatted' text using a non-distinguishable font style. Code blocks are still not recognized by the ODT reader. That's a separate issue.
Diffstat (limited to 'tests/odt')
-rw-r--r--tests/odt/native/inlinedCode.native1
-rw-r--r--tests/odt/odt/inlinedCode.odtbin0 -> 10141 bytes
2 files changed, 1 insertions, 0 deletions
diff --git a/tests/odt/native/inlinedCode.native b/tests/odt/native/inlinedCode.native
new file mode 100644
index 000000000..6e32ff7a9
--- /dev/null
+++ b/tests/odt/native/inlinedCode.native
@@ -0,0 +1 @@
+[Para [Str "Here",Space,Str "comes",Space,Code ("",[],[]) "inlined code",Space,Str "text",Space,Str "and",Space,Code ("",[],[]) "an another",Space,Str "one."]]
diff --git a/tests/odt/odt/inlinedCode.odt b/tests/odt/odt/inlinedCode.odt
new file mode 100644
index 000000000..320375cc9
--- /dev/null
+++ b/tests/odt/odt/inlinedCode.odt
Binary files differ