From 6940577d8ee50cb53dc2a212e91172b4b1f1e20b Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Thu, 14 May 2009 06:39:20 -0700 Subject: [PATCH] litorgy-src-block-regexp is now robust to trailing spaces after source name --- litorgy/litorgy.el | 2 +- rorg.org | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/litorgy/litorgy.el b/litorgy/litorgy.el index 0bbfdc9eb..fa4e1c692 100644 --- a/litorgy/litorgy.el +++ b/litorgy/litorgy.el @@ -53,7 +53,7 @@ then run `litorgy-execute-src-block'." (setq litorgy-src-block-regexp (concat "#\\+begin_src \\(" (mapconcat 'regexp-quote value "\\|") - "\\)" + "\\)[ \t]*" "\\([ \t]+\\([^\n]+\\)\\)?\n" ;; match header arguments "\\([^\000]+?\\)#\\+end_src")) (setq litorgy-inline-src-block-regexp diff --git a/rorg.org b/rorg.org index 86d48f158..f06f6bd33 100644 --- a/rorg.org +++ b/rorg.org @@ -312,9 +312,7 @@ This is currently working only with emacs lisp as in the following example in the [[* emacs lisp source reference][emacs lisp source reference]]. -* Bugs [2/4] -** TODO space trailing language name -fix regexp so it works when there's a space trailing the language name +* Bugs [3/4] ** TODO extra quotes for nested string when string are 2 deep in org-mode tables their quotes aren't being @@ -346,6 +344,13 @@ ls #+begin_src ruby puts %w(eric michael schulte) #+end_src +** RESOLVED space trailing language name +fix regexp so it works when there's a space trailing the language name + +#+srcname: test-trailing-space +#+begin_src ruby +:schulte +#+end_src ** RESOLVED Args out of range error