emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ulf Stegemann <ulf-news@zeitform.de>
To: emacs-orgmode@gnu.org
Subject: textareas in HTML export
Date: Tue, 23 Feb 2010 12:04:18 +0100	[thread overview]
Message-ID: <zf.upnvddoz00d.fsf@zeitform.de> (raw)

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

             reply	other threads:[~2010-02-23 11:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-23 11:04 Ulf Stegemann [this message]
2010-02-25 11:28 ` textareas in HTML export Carsten Dominik
2010-02-25 13:23   ` Ulf Stegemann
2010-02-25 14:40     ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=zf.upnvddoz00d.fsf@zeitform.de \
    --to=ulf-news@zeitform.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).