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:
Bastien Guerry 2009-07-16 21:07:03 +02:00
parent 14ce57f84a
commit 0be765f999
1 changed files with 1 additions and 1 deletions

View File

@ -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