浏览代码

HTML export: Fix textareas

Textareas no longer have an empty line at the beginning, and the
overflow-x stype property has been moved to the CSS section.

Patch by Ulf Stegemann
Carsten Dominik 15 年之前
父节点
当前提交
e7f7a82a74
共有 3 个文件被更改,包括 10 次插入1 次删除
  1. 8 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-exp.el
  3. 1 0
      lisp/org-html.el

+ 8 - 0
lisp/ChangeLog

@@ -1,3 +1,11 @@
+2010-02-25  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-html.el (org-export-html-style-default): Add a default style
+	for textareas.
+
+	* org-exp.el (org-export-format-source-code-or-example): Fix
+	textarea tag.
+
 2010-02-24  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org-remember.el (org-remember-apply-template): Extend comment.

+ 1 - 1
lisp/org-exp.el

@@ -2475,7 +2475,7 @@ INDENT was the original indentation of the block."
                                (if caption "</div>" "")))))
 		(if textareap
 		    (setq rtn (concat
-			       (format "<p>\n<textarea cols=\"%d\" rows=\"%d\" overflow-x:scroll >\n"
+			       (format "<p>\n<textarea cols=\"%d\" rows=\"%d\">"
 				       cols rows)
 			       rtn "</textarea>\n</p>\n"))
 		  (with-temp-buffer

+ 1 - 0
lisp/org-html.el

@@ -137,6 +137,7 @@ not be modified."
   dt { font-weight: bold; }
   div.figure { padding: 0.5em; }
   div.figure p { text-align: center; }
+  textarea { overflow-x: scroll; }
   .linenr { font-size:smaller }
   .code-highlighted {background-color:#ffff00;}
   .org-info-js_info-navigation { border-style:none; }