Переглянути джерело

HTML Export: Remove the extra newline after <pre> tags

Patch by Derek Upham
Carsten Dominik 15 роки тому
батько
коміт
6525cc622f
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      lisp/org-exp.el

+ 2 - 2
lisp/org-exp.el

@@ -2228,7 +2228,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\">\n" lang)
+				   (format "<pre class=\"src src-%s\">" lang)
 				   t t rtn))))
 		(if textareap
 		    (setq rtn (concat
@@ -2243,7 +2243,7 @@ INDENT was the original indentation of the block."
 						'((?&."&amp;")(?<."&lt;")(?>."&gt;"))))
 				     t t))
 		    (setq rtn (buffer-string)))
-		  (setq rtn (concat "<pre class=\"example\">\n" rtn "</pre>\n"))))
+		  (setq rtn (concat "<pre class=\"example\">" rtn "</pre>\n"))))
 	      (unless textareap
 		(setq rtn (org-export-number-lines rtn 'html 1 1 num
 						   cont rpllbl fmt)))