[DRE-commits] [ruby-org] 275/303: Skip blocks of unsupported type.
Jérémy Bobbio
lunar at alioth.debian.org
Fri Aug 9 17:34:12 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 326d1b62fc087bf4d853f08608d097602106b207
Author: vonavi <ivvl82 at gmail.com>
Date: Mon Feb 4 02:10:03 2013 +0200
Skip blocks of unsupported type.
---
lib/org-ruby/line.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/org-ruby/line.rb b/lib/org-ruby/line.rb
index 997fba9..a257303 100644
--- a/lib/org-ruby/line.rb
+++ b/lib/org-ruby/line.rb
@@ -240,7 +240,12 @@ module Orgmode
when metadata?
:metadata
when block_type
- block_type.downcase.to_sym
+ case block_type.downcase.to_sym
+ when :center, :comment, :example, :html, :quote, :src
+ block_type.downcase.to_sym
+ else
+ :comment
+ end
when raw_text? # order is important! Raw text can be also a comment
:raw_text
when comment?
--
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