[web2py] Re: Pretty printing a string in a view

2015-10-13 Thread Gary Cowell
When I'm presenting for example log data from a process execution with web2py, I'll use PRE and put it in a textarea. On Monday, 12 October 2015 11:07:52 UTC+1, Callum Daw wrote: > > Thank you so much, the tag worked a charm, the issue I was facing is > that it returns XML to my unit which conn

[web2py] Re: Pretty printing a string in a view

2015-10-12 Thread Callum Daw
Thank you so much, the tag worked a charm, the issue I was facing is that it returns XML to my unit which connects to it so having a would have caused problems. Thanks again! On Monday, 12 October 2015 10:50:49 UTC+1, Leonel Câmara wrote: > > This is just how HTML works. For instance if you pu

[web2py] Re: Pretty printing a string in a view

2015-10-12 Thread Leonel Câmara
This is just how HTML works. For instance if you put this in your view: {{=mystring}} You will see the newlines and spacing. Otherwise, if you don't want it showing like that, you need to prepare your string better (for instance replacing \n in the string with ). -- Resources: - http://web2