From 0be765f999901f5c97630a95e3327a2f9f5ed5c1 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Thu, 16 Jul 2009 21:07:03 +0200 Subject: [PATCH] Fix problem with line numbering in HTML source examples. As reported by Ulf Stegemann (09/07/2009) the HTML output of the example in the manual would result in no number for the first line. It is because `org-export-number-lines' is told to skip one line while the line inserted previously (i.e. "
") doesn't end with a newline.
---
 lisp/org-exp.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index ed1778cd3..67aca636a 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2248,7 +2248,7 @@ INDENT was the original indentation of the block."
 			     (point-min) (point-max))))
 		    (if (string-match "]*\\)>\n*" rtn)
 			(setq rtn (replace-match
-				   (format "
" lang)
+				   (format "
\n" lang)
 				   t t rtn))))
 		(if textareap
 		    (setq rtn (concat