It doesn't matter if the double quotes are escaped or not escaped (I was 
trying different things in an attempt to get it to work) - either way, the 
text will be truncated after the first double quote.

On Sunday, May 17, 2015 at 2:13:24 PM UTC-5, Niphlod wrote:
>
> why are you escaping the double quotes ?
>
> On Sunday, May 17, 2015 at 6:29:00 PM UTC+2, Spokes wrote:
>>
>> I'm attempting to include a relatively lengthy passage of text in a 
>> textarea placeholder; the text contains some terms within double-quotes, 
>> and the text string is passed to current.T(). The problem is that 
>> everything following the first double-quote gets truncated. For example, 
>> let's say this is the text sample, a print statement, for debugging, and 
>> the textarea code:
>>
>> my_text = current.T('this is some \"text\" which contains quotes' \
>>                     + 'the text continues on the next line')
>> print "\nmy_text:", my_text
>> textarea = TEXTAREA(_placeholder = my_text, ...)
>>
>> The output of the print statement will be the full text string. However, 
>> the placeholder within the textarea will be "this is some". Any idea as to 
>> what's going on here, and how to fix it? Thanks.
>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to