summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2010-02-25 12:26:10 +0100
committerCarsten Dominik <carsten.dominik@gmail.com>2010-02-25 12:26:10 +0100
commite7f7a82a74d54439c0ab14fe24de913c92e4f33b (patch)
tree32db761a62707a82fdbf0b7fda7f277e6bf667bd
parentada3986f9d552f64e86caded38e0abac69bb9ae5 (diff)
downloadorg-mode-e7f7a82a74d54439c0ab14fe24de913c92e4f33b.tar.gz
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
-rwxr-xr-xlisp/ChangeLog8
-rw-r--r--lisp/org-exp.el2
-rw-r--r--lisp/org-html.el1
3 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 20cb4d0..7fae6cc 100755
--- a/lisp/ChangeLog
+++ b/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.
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 1869c1d..f20b511 100644
--- a/lisp/org-exp.el
+++ b/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
diff --git a/lisp/org-html.el b/lisp/org-html.el
index 343d442..0b89abb 100644
--- a/lisp/org-html.el
+++ b/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; }