[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [PATCH] Skip source block fontification when the language is n

From: Bernt Hansen
Subject: [Orgmode] [PATCH] Skip source block fontification when the language is not defined
Date: Tue, 21 Dec 2010 23:06:17 -0500

* lisp/org.el: Skip source block fontification during export when language
is not defined
This may not be the correct fix for this issue but it works for me.

This patch is available at git://git.norang.ca/org-mode.git fix-export


 lisp/org.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 3cecca7..006e7bf 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5142,7 +5142,7 @@ will be prompted for."
              (add-text-properties end1 (+ end 1) '(face org-meta-line))
                                        ; for end_src
-              ((and lang org-src-fontify-natively)
+              ((and lang (not (string-equal lang "")) org-src-fontify-natively)
                (org-src-font-lock-fontify-block lang block-start block-end))
                (add-text-properties beg1 (+ end1 1) '(face

reply via email to

[Prev in Thread] Current Thread [Next in Thread]