Skip to content

Commit

Permalink
Footnode export (for HTML) is controlled by #+OPTIONS: f:t (default off)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruediger committed Jul 21, 2011
1 parent 7554cdc commit d37889f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/org-ruby/parser.rb
Expand Up @@ -53,6 +53,11 @@ def export_todo?
"t" == @options["todo"]
end

# Returns true if we are to export footnotes
def export_footnotes?
"t" == @options["f"]
end

# Returns true if we are to export heading numbers.
def export_heading_number?
"t" == @options["num"]
Expand Down Expand Up @@ -171,7 +176,7 @@ def to_html
:export_heading_number => export_heading_number?,
:export_todo => export_todo?,
:use_sub_superscripts => use_sub_superscripts?,
:export_footnotes => true
:export_footnotes => export_footnotes?
}
export_options[:skip_tables] = true if not export_tables?
output = ""
Expand Down
1 change: 1 addition & 0 deletions spec/html_examples/footnotes.org
@@ -1,4 +1,5 @@
#+TITLE: Footnotes
#+OPTIONS: f:t

Hello[fn:abc]
World[fn:abc:definition of abc]
Expand Down
1 change: 1 addition & 0 deletions spec/textile_examples/footnotes.org
@@ -1,4 +1,5 @@
#+TITLE: Footnotes
#+OPTIONS: f:t

Hello[fn:abc]
World[fn:abc:definition of abc]
Expand Down

0 comments on commit d37889f

Please sign in to comment.