emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] Strip text properties from string code block arguments


From: Daniel Gerber
Subject: Re: [O] [PATCH] Strip text properties from string code block arguments
Date: Wed, 08 Jan 2014 18:27:19 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 08/01/2014 17:31, Bastien wrote:
Daniel Gerber <address@hidden> writes:

This change in org-babel-python-var-to-python makes python code blocks
accept a string with text properties (as one gets when referring
another code block). I guess there should be something similar for
other languages.
I've now fixed this by using %s instead of %S, let me know if this
works correctly for you.
Not quite. I thought %S was not a typo because it escapes characters more nicely. E.g. with %s the buffer should contain \"\"\" to mean """ in python.

Also, one quote is missing
- (if (and (stringp var) (string-match "[\n\r]" var)) "\"\"%s\"\"" "%s") + (if (and (stringp var) (string-match "[\n\r]" var)) "\"\"\"%s\"\"\"" "\"%s\"")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]