forked from mirrors/org-mode
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.
This commit is contained in:
parent
14ce57f84a
commit
0be765f999
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue