[DRE-commits] [ruby-org] 254/303: Fix for nonexistent Org-mode entity.

Jérémy Bobbio lunar at alioth.debian.org
Fri Aug 9 17:34:08 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 b11e090bc52f2532a77e7201859320cf70219fdf
Author: vonavi <ivvl82 at gmail.com>
Date:   Thu Jan 31 12:12:43 2013 +0200

    Fix for nonexistent Org-mode entity.
---
 lib/org-ruby/html_symbol_replace.rb    |    2 ++
 lib/org-ruby/textile_symbol_replace.rb |    2 ++
 util/gen-special-replace.el            |    2 ++
 3 files changed, 6 insertions(+)

diff --git a/lib/org-ruby/html_symbol_replace.rb b/lib/org-ruby/html_symbol_replace.rb
index 3b1c58c..1835086 100644
--- a/lib/org-ruby/html_symbol_replace.rb
+++ b/lib/org-ruby/html_symbol_replace.rb
@@ -356,6 +356,8 @@ module Orgmode
         if $2 == "{}" then "#{HtmlEntities[$1]}"
         else "#{HtmlEntities[$1]}#{$2}"
         end
+      else
+        $&
       end
     end
   end
diff --git a/lib/org-ruby/textile_symbol_replace.rb b/lib/org-ruby/textile_symbol_replace.rb
index 8afbbca..153f871 100644
--- a/lib/org-ruby/textile_symbol_replace.rb
+++ b/lib/org-ruby/textile_symbol_replace.rb
@@ -357,6 +357,8 @@ module Orgmode
         if $2 == "{}" then "#{TextileEntities[$1]}"
         else "#{TextileEntities[$1]}#{$2}"
         end
+      else
+        $&
       end
     end
   end
diff --git a/util/gen-special-replace.el b/util/gen-special-replace.el
index 24113fe..fa7746d 100644
--- a/util/gen-special-replace.el
+++ b/util/gen-special-replace.el
@@ -37,6 +37,8 @@
    "        if $2 == \"{}\" then \"#{" (capitalize what) "Entities[$1]}\"\n"
    "        else \"#{" (capitalize what) "Entities[$1]}#{$2}\"\n"
    "        end\n"
+   "      else\n"
+   "        $&\n"
    "      end\n"
    "    end\n"
    "  end\n"

-- 
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