From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [Babel] Parsing source block bug ... Date: Sat, 14 Sep 2013 09:28:39 -0600 Message-ID: <874n9ns8wl.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKs3Z-0007F7-IK for emacs-orgmode@gnu.org; Sat, 14 Sep 2013 11:46:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKs3U-0003p8-CT for emacs-orgmode@gnu.org; Sat, 14 Sep 2013 11:46:45 -0400 Received: from mail-pb0-x231.google.com ([2607:f8b0:400e:c01::231]:57244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKs3U-0003p4-4y for emacs-orgmode@gnu.org; Sat, 14 Sep 2013 11:46:40 -0400 Received: by mail-pb0-f49.google.com with SMTP id xb4so2392612pbc.8 for ; Sat, 14 Sep 2013 08:46:38 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: aditya siram Cc: emacs-orgmode@gnu.org Thanks for this patch! I've just applied it. For future patches it is good form to keep the first line of the commit message <= 50 characters long (used to summarize the patch), the second line should be blank, and all subsequent lines should be <=70 characters long. Thanks again. aditya siram writes: > Hi all, > This patch fixes a bug where the regexp for parsing source blocks is too > greedy on the body and so fails in the presence of empty code blocks. For > instance given the following: > > #+begin_src c > #+end_src > #+begin_src c > hello world > #+end_src > > , doing (org-babel-get-src-block-info) the first #+begin_src will include > everything up to the second #+end_src as part of the body. > -deech > -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D