Re: [O] adding "wrap=off" option to textarea for HTML export

2016-09-10 Thread Eric S Fraga
On Thursday, 8 Sep 2016 at 20:51, Nicolas Goaziou wrote: > Hello, > > Eric S Fraga writes: > >> On Thursday, 8 Sep 2016 at 17:54, Nick Dokos wrote: >>> Or modify the textarea function to understand :wrap - not sure whether >>> Nicolas would accept a patch though: >> >> Would

Re: [O] adding "wrap=off" option to textarea for HTML export

2016-09-09 Thread Eric S Fraga
On Friday, 9 Sep 2016 at 15:32, Clément Pit--Claudel wrote: > On 2016-09-08 11:49, Eric S Fraga wrote: >> To turn wrapping off, I would need to add 'wrap="off"' to the textarea >> form as this option cannot be controlled using CSS unfortunately. I >> don't see any way to do this from org. > >

Re: [O] adding "wrap=off" option to textarea for HTML export

2016-09-09 Thread Clément Pit--Claudel
On 2016-09-08 11:49, Eric S Fraga wrote: > To turn wrapping off, I would need to add 'wrap="off"' to the textarea > form as this option cannot be controlled using CSS unfortunately. I > don't see any way to do this from org. Hm. Doesn't the following work? textarea { white-space: pre; }

Re: [O] adding "wrap=off" option to textarea for HTML export

2016-09-09 Thread Eric S Fraga
On Thursday, 8 Sep 2016 at 17:54, Nick Dokos wrote: > Can you add a post-processing hook? A simple text replacement might be enough. This worked very well: #+begin_src emacs-lisp :exports results :results none (defun add-wrap-to-textarea (text backend info) (when

Re: [O] adding "wrap=off" option to textarea for HTML export

2016-09-08 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > On Thursday, 8 Sep 2016 at 17:54, Nick Dokos wrote: >> Can you add a post-processing hook? A simple text replacement might be >> enough. > > Very good suggestion. The HTML produced is quite straightforward so > this should be easy. I'll play

Re: [O] adding "wrap=off" option to textarea for HTML export

2016-09-08 Thread Eric S Fraga
On Thursday, 8 Sep 2016 at 17:54, Nick Dokos wrote: > Can you add a post-processing hook? A simple text replacement might be enough. Very good suggestion. The HTML produced is quite straightforward so this should be easy. I'll play around. Thanks. > Or modify the textarea function to

Re: [O] adding "wrap=off" option to textarea for HTML export

2016-09-08 Thread Nick Dokos
Eric S Fraga writes: > I'm preparing some documentation, exported to HTML, that includes the > output of a src block. Because this output is rather long, I have > > #+attr_html: :textarea t :height 20 > > before the results of the src block. This generates the correct >

[O] adding "wrap=off" option to textarea for HTML export

2016-09-08 Thread Eric S Fraga
Hi, I'm preparing some documentation, exported to HTML, that includes the output of a src block. Because this output is rather long, I have #+attr_html: :textarea t :height 20 before the results of the src block. This generates the correct form in the HTML output. The text area form's width