File: include-file.org

package info (click to toggle)
ruby-org 0.9.12-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,852 kB
  • sloc: ruby: 3,044; lisp: 50; makefile: 4
file content (84 lines) | stat: -rw-r--r-- 2,112 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#+TITLE: Example of including a file
#+EXPORT_EXCLUDE_TAGS: noexport

* DONE Basic tests

#+INCLUDE: "./spec/html_examples/advanced-lists.org"

#+INCLUDE: "./spec/html_examples/blockcomment.org"

* DONE Within a commented block

#+BEGIN_COMMENT
This will be ignored but...
#+INCLUDE: "./spec/html_examples/escape-pre.org"
the included file above will be rendered.
#+END_COMMENT

* DONE Within a center block

#+BEGIN_CENTER
The following included file will be centered:

#+INCLUDE: "./spec/html_examples/inline-images.org"

#+END_CENTER

* DONE Within a blockquote

This is similar to the center block:

#+begin_quote
Before
#+INCLUDE: "./spec/html_examples/inline-images.org"
After
#+end_quote

* DONE Within an example block, it should not be possible to include a file.

: #+INCLUDE: "./spec/html_examples/only-list.org"

* TODO Within a source code block				   :noexport:

It should not be possible to include a file within a source code block.
(Some versions of Emacs Org mode also have this behavior though...)

#+begin_src ruby :results output
included_file = <<HERE  
Hello
#+INCLUDE: "./spec/html_examples/only-list.org"
World
HERE

puts included_file
#+end_src

* DONE Within a list

- A list that has an included file directive
  + Only go to the first level
    * when included it always goes to the first level and absorbs next list items
#+INCLUDE: "./spec/html_examples/only-list.org"
    * 3rd level
  + 3rd level, though it should be a different list

* DONE Within a table, cannot be included

  | One                                             | Two   | Three |
  |-------------------------------------------------+-------+-------|
  | #+INCLUDE: "./spec/html_examples/only-list.org" | Five  | Six   |
  | Seven                                           | Eight | Nine  |


* COMMENT When the headline is commented, it should not display

#+INCLUDE: "./spec/html_examples/only-list.org"

* DONE When including a file as an example

#+INCLUDE: "./spec/html_examples/only-list.org" example ""

* DONE When including a file as an quote

#+INCLUDE: "./spec/html_examples/only-list.org" quote ""