Quellcode durchsuchen

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. "<pre class ...>") doesn't end with a newline.
Bastien Guerry vor 15 Jahren
Ursprung
Commit
0be765f999
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      lisp/org-exp.el

+ 1 - 1
lisp/org-exp.el

@@ -2248,7 +2248,7 @@ INDENT was the original indentation of the block."
 			     (point-min) (point-max))))
 		    (if (string-match "<pre\\([^>]*\\)>\n*" rtn)
 			(setq rtn (replace-match
-				   (format "<pre class=\"src src-%s\">" lang)
+				   (format "<pre class=\"src src-%s\">\n" lang)
 				   t t rtn))))
 		(if textareap
 		    (setq rtn (concat