* 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
* Re: textareas in HTML export
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
0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2010-02-25 11:28 UTC (permalink / raw)
To: Ulf Stegemann; +Cc: emacs-orgmode
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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: textareas in HTML export
2010-02-25 11:28 ` Carsten Dominik
@ 2010-02-25 13:23 ` Ulf Stegemann
2010-02-25 14:40 ` Carsten Dominik
0 siblings, 1 reply; 4+ messages in thread
From: Ulf Stegemann @ 2010-02-25 13:23 UTC (permalink / raw)
To: emacs-orgmode
Dear Carsten,
Carsten Dominik <carsten.dominik@gmail.com> wrote:
> Applied, thanks.
thanks for that :)
> 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.
Just as a suggestion: Wouldn't it be better to set `overflow-x' to
`auto' instead of `scroll'? This leaves it up to the user agent how to
render boxes with overflows. Major browsers (FF, IEs, Opera, Chrome) do
what you expect: display a scroll bar if it's necessary (text goes
beyond box border) or leave it out whenever it's not needed.
Ulf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: textareas in HTML export
2010-02-25 13:23 ` Ulf Stegemann
@ 2010-02-25 14:40 ` Carsten Dominik
0 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2010-02-25 14:40 UTC (permalink / raw)
To: Ulf Stegemann; +Cc: emacs-orgmode
On Feb 25, 2010, at 2:23 PM, Ulf Stegemann wrote:
> Dear Carsten,
>
> Carsten Dominik <carsten.dominik@gmail.com> wrote:
>
>> Applied, thanks.
>
> thanks for that :)
>
>> 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.
>
> Just as a suggestion: Wouldn't it be better to set `overflow-x' to
> `auto' instead of `scroll'? This leaves it up to the user agent how to
> render boxes with overflows. Major browsers (FF, IEs, Opera, Chrome)
> do
> what you expect: display a scroll bar if it's necessary (text goes
> beyond box border) or leave it out whenever it's not needed.
OK, I did that. Thanks.
- Carsten
^ 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).