From: Robert Goldman <rpgoldman@sift.info>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: centering blocks cause latex export to crash
Date: Wed, 14 Dec 2011 15:28:35 -0600 [thread overview]
Message-ID: <4EE91503.4000106@sift.info> (raw)
In-Reply-To: <4EE90FC8.6080706@sift.info>
On 12/14/11 Dec 14 -3:06 PM, Robert Goldman wrote:
> I am using the latest org from git.
>
> The attached org-mode file causes latex export to crash with an error of
> "unbalanced begin/end center blocks with ...."
>
> This did work, as recently as a month ago, so something relatively
> recent has broken it.
I got in the debugger, and the problem is that the regular expression
for the end of the centering block, computed as inner-re in
org-export-blocks-preprocess fails to match my #+end_center
inner-re is:
(inner-re (format "[\r\n][ \t]*#\\+\\(begin\\|end\\)_%s"
(regexp-quote (downcase (match-string 2)))))
I don't understand why this is happening: I haven't been able to tell if
the regular expression is incorrectly written, so it fails to find the
ending of the center block, or if somehow the logic in the while loop
(which counts begins and ends to make sure they match) is counting wrong.
Cheers,
r
next prev parent reply other threads:[~2011-12-14 21:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-14 21:06 centering blocks cause latex export to crash Robert Goldman
2011-12-14 21:13 ` Nick Dokos
2011-12-14 21:41 ` Robert Goldman
2011-12-14 22:16 ` Nick Dokos
2011-12-14 21:28 ` Robert Goldman [this message]
2011-12-23 17:54 ` Bastien
2011-12-23 18:41 ` Nick Dokos
2011-12-24 22:27 ` Robert Goldman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EE91503.4000106@sift.info \
--to=rpgoldman@sift.info \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).