[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH] Turning off wrapping
From: |
Michael Gauland |
Subject: |
[O] [PATCH] Turning off wrapping |
Date: |
Thu, 24 Jan 2013 16:54:20 +1300 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
I have file with a large number of SRC blocks, the output of which I
want to wrap as SRC (so I can use the listings package to format them
distinctly). The easiest way to do this is to make :wrap a global
property. Unfortunately, there are also a couple of places where I want
to turn off the wrapping, especially where I include source in-line.
For example, this:
#+PROPERTY: wrap SRC fundamental
#+BEGIN_SRC emacs-lisp
"This output comes from emacs."
#+END_SRC
This in-line src_emacs-lisp[:results value]{"block"} is wrapped.
produces:
,----
| "This output comes from emacs."
`----
This in-line #+BEGIN_SRC fundamental block#+END_SRC is wrapped.
If I pass an empty :wrap in the in-line block, the result is still
wrapped, but as RESULTS instead of source.
The attached patch attempts to change this behaviour. Does anyone else
find this desirable? Is this patch a good way to do it?
Kind Regards,
Mike
ob-core.el.diff
Description: Text Data
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] [PATCH] Turning off wrapping,
Michael Gauland <=