Hi, I've been trying for a while to return my string to my view with line 
breaks and spacing although it always just outputs as a long string.

Currently I have a view which calls the function and the function outputs a 
string contained in """triple quotes.""". When I print this string from the 
function is outputs to the console with indentation and spacing however 
when I return it to my view it outputs as 1 long string.

In my view I simply have {{=function(variable)}} is there any way I can 
output this nicely, or at least include the whitespace?
On a side note when I returned repr(variable) from my function it prints 
out the \n's in the correct places.

Please let me know if it is unclear, I feel like I've not explained it too 
well.

Callum

-- 

Isys Group Ltd is a wholly owned subsidiary of Capita Plc 
<http://www.capita.co.uk/what-we-do/services/software.aspx>.



-- 
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