emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* textareas in HTML export
@ 2010-02-23 11:04 Ulf Stegemann
  2010-02-25 11:28 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Ulf Stegemann @ 2010-02-23 11:04 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 646 bytes --]

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:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org-exp.patch --]
[-- Type: text/x-patch, Size: 460 bytes --]

--- 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

[-- Attachment #3: Type: text/plain, Size: 5 bytes --]


Ulf

[-- Attachment #4: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-25 14:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-23 11:04 textareas in HTML export Ulf Stegemann
2010-02-25 11:28 ` Carsten Dominik
2010-02-25 13:23   ` Ulf Stegemann
2010-02-25 14:40     ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).