emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] textareas in HTML export


From: Carsten Dominik
Subject: Re: [Orgmode] textareas in HTML export
Date: Thu, 25 Feb 2010 12:28:43 +0100

Applied, thanks.

But I did move the overflow:x property into the css section (default style), because I think it is important *functionality* that should be there out off the box.

Thanks, Ulf!

- Carsten

On Feb 23, 2010, at 12:04 PM, Ulf Stegemann wrote:

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
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten







reply via email to

[Prev in Thread] Current Thread [Next in Thread]