Hi,

The attached patch fixes this issue (and I believe the issue Sébastien
mentioned earlier) on my system.

Best -- Eric

>From 9a80e142eb9d39d70dbaa4a574653bea76abb31b Mon Sep 17 00:00:00 2001
From: Eric Schulte <schulte.e...@gmail.com>
Date: Wed, 30 Jun 2010 13:41:13 -0700
Subject: [PATCH] org-exp: comment regexp now matches indented comments

* lisp/org-exp.el (org-export-handle-comments): comment regexp no
  longer requires comments to start at the beginning of a line.
---
 lisp/org-exp.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 54afdac..766167e 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -1638,7 +1638,7 @@ table line.  If it is a link, add it to the line containing the link."
   "Remove comments, or convert to backend-specific format.
 COMMENTSP can be a format string for publishing comments.
 When it is nil, all comments will be removed."
-  (let ((re "^\\(#\\|[ \t]*#\\+ \\)\\(.*\n?\\)")
+  (let ((re "^[ \t]*\\(#\\|[ \t]*#\\+ \\)\\(.*\n?\\)")
 	pos)
     (goto-char (point-min))
     (while (or (looking-at re)
-- 
1.7.0.4

Sébastien Vauban <wxhgmqzgw...@spammotel.com> writes:

> Hi Tassilo,
>
> Tassilo Horn wrote:
>> * Implementieren
>>
>> ** Composite Pattern
>>
>>    #+ATTR_LaTeX: width=\textwidth
>>    [[./composite-pattern.png]]
>>
>> Unfortunately, the image doesn't show up, but the #+ATTR_LaTeX is
>> displayed literally.  Here's the LaTeX code produced by the LaTeX
>> export.
>
> Just for information, this must be the same cause as for the symptom I
> described in "Tables and environment with parameters".
>
> Best regards,
>   Seb
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to