From 9e90239a70da0d97d1e0a171c4c8a9f191dfa8be Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Tue, 18 Oct 2011 16:55:27 +0530 Subject: [PATCH] org-odt.el: Don't corrupt styles.xml while applying outline numbering * contrib/lisp/org-odt.el (org-odt-configure-outline-numbering): Tighten the regular expression that matches "" element. Fixes bug reported here http://lists.gnu.org/archive/html/emacs-orgmode/2011-10/msg00594.html --- contrib/lisp/org-odt.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el index f088b0519..9bf158a3d 100644 --- a/contrib/lisp/org-odt.el +++ b/contrib/lisp/org-odt.el @@ -2099,7 +2099,7 @@ visually." To disable outline numbering pass a LEVEL of 0." (goto-char (point-min)) (let ((regex - "") + "]*\\)text:level=\"\\([^\"]*\\)\"\\([^>]*\\)>") (replacement "")) (while (re-search-forward regex nil t)