[DRE-commits] [ruby-org] 96/303: Footnode export (for HTML) is controlled by #+OPTIONS: f:t (default off)

Jérémy Bobbio lunar at alioth.debian.org
Fri Aug 9 17:33:35 UTC 2013


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository ruby-org.

commit d37889f1ea20f2044e2ad3cb856aa5683d765559
Author: Rüdiger Sonderfeld <ruediger at c-plusplus.de>
Date:   Thu Jul 21 04:24:15 2011 +0200

    Footnode export (for HTML) is controlled by #+OPTIONS: f:t (default off)
---
 lib/org-ruby/parser.rb              |    7 ++++++-
 spec/html_examples/footnotes.org    |    1 +
 spec/textile_examples/footnotes.org |    1 +
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/lib/org-ruby/parser.rb b/lib/org-ruby/parser.rb
index 905f310..139a88c 100644
--- a/lib/org-ruby/parser.rb
+++ b/lib/org-ruby/parser.rb
@@ -53,6 +53,11 @@ module Orgmode
       "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"]
@@ -171,7 +176,7 @@ module Orgmode
         :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 = ""
diff --git a/spec/html_examples/footnotes.org b/spec/html_examples/footnotes.org
index f5c5ef2..86ee879 100644
--- a/spec/html_examples/footnotes.org
+++ b/spec/html_examples/footnotes.org
@@ -1,4 +1,5 @@
 #+TITLE: Footnotes
+#+OPTIONS: f:t
 
 Hello[fn:abc]
 World[fn:abc:definition of abc]
diff --git a/spec/textile_examples/footnotes.org b/spec/textile_examples/footnotes.org
index f5c5ef2..86ee879 100644
--- a/spec/textile_examples/footnotes.org
+++ b/spec/textile_examples/footnotes.org
@@ -1,4 +1,5 @@
 #+TITLE: Footnotes
+#+OPTIONS: f:t
 
 Hello[fn:abc]
 World[fn:abc:definition of abc]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-org.git



More information about the Pkg-ruby-extras-commits mailing list