[EMAIL PROTECTED] schrieb:
> if I have a string such as:
> 
> menu = """
> Welcome to Network Assistant
> ####################
> 1)Connect
> 2)Show clock
> 3)Show ip int brief
> 4)Exit
> ####################
> """
> 
> I cannot seem to find out how to display this on my website with the
> new lines, this is how it will display (all on the one line):
> 
> Welcome to AAPT Network Assistant #################### 1)Connect
> 2)Show clock 3)Show ip int brief 4)Exit ####################
> 
> '
> My controller file has:
> 
>     @expose(template="networkassistant.templates.test")
>     def test(self):
>         #content = publish_parts(mytelnet.getDetails(),
> writer_name="html")['html_body']
>         content = mytelnet.getDetails()
>         return dict(message=content)
> 
> How can I get the webpage to display with the lines as shown at the
> top?
> 
> Any help would be greatly appreciated.

This is a HTML-issue. HTML doesn't preserve whitespace. You need to wrap 
the output in a <pre>-tag, or introduce <br/>-tags or some such for the 
newlines.

Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to