[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] textareas in HTML export
From: |
Ulf Stegemann |
Subject: |
[Orgmode] textareas in HTML export |
Date: |
Tue, 23 Feb 2010 12:04:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) |
Hi,
I think that exporting an example to HTML as textarea does not result in
correct HTML code.
I don't know if
,----
| <textarea cols="80" rows="2" overflow-x:scroll >
`----
has an effect in any user-agent but as this seems to be a css directive
this should probably read
,----
| <textarea cols="80" rows="2" style="overflow-x:scroll;" >
`----
However, I would leave out the overflow stuff completely as stylesheets
can be easily controlled by the user him/herself. Furthermore, I would
suggest to leave out the newline after the textarea tag which always
produces an empty line at the beginning of the example. The following
does that:
--- org-exp.el.orig 2010-02-23 11:11:37.377506001 +0100
+++ org-exp.el 2010-02-23 11:52:45.326505387 +0100
@@ -2475,7 +2475,7 @@
(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
Ulf
- [Orgmode] textareas in HTML export,
Ulf Stegemann <=