[DRE-commits] [ruby-org] 100/303: Fix bug Ordered and Unordered lists regexp.

Jérémy Bobbio lunar at alioth.debian.org
Fri Aug 9 17:33:36 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 692847d5e020ff3dc0227c7db86b23215c4c69db
Author: Puneeth Chaganti <punchagan at gmail.com>
Date:   Mon Aug 15 19:59:20 2011 +0530

    Fix bug Ordered and Unordered lists regexp.
    
    Space is mandatory after the list bullet or number.
---
 lib/org-ruby/line.rb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/org-ruby/line.rb b/lib/org-ruby/line.rb
index fe18ad2..9901496 100644
--- a/lib/org-ruby/line.rb
+++ b/lib/org-ruby/line.rb
@@ -56,7 +56,7 @@ module Orgmode
       ordered_list? or unordered_list?
     end
 
-    UnorderedListRegexp = /^\s*(-|\+)\s*/
+    UnorderedListRegexp = /^\s*(-|\+)\s+/
 
     def unordered_list?
       check_assignment_or_regexp(:unordered_list, UnorderedListRegexp)
@@ -66,7 +66,7 @@ module Orgmode
       @line.sub(UnorderedListRegexp, "")
     end
 
-    OrderedListRegexp = /^\s*\d+(\.|\))\s*/
+    OrderedListRegexp = /^\s*\d+(\.|\))\s+/
 
     def ordered_list?
       check_assignment_or_regexp(:ordered_list, OrderedListRegexp)

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