Thanks guys. That seemed to work! On Dec 3, 5:49 pm, OvermindDL1 <[email protected]> wrote: > On Thu, Dec 3, 2009 at 4:58 PM, Robert Kluin <[email protected]> wrote: > > Just a guess here, but try wrapping the contents in a <pre> tag. Probably > > they newlines are not getting displayed by the browser, have you "viewed > > source" to see if they are there? > > > print '<pre>%s</pre>' % mymodel.directions > > This is correct. The HTML spec defines that newlines in the HTML > source are only for making the source easier to work with and should > not be displayed to the page. The pre tag says to render the content > verbatim, newlines and all. You normally handle newlines by use of > div/pre/etc... > > > > > On Thu, Dec 3, 2009 at 2:52 PM, Charlie <[email protected]> wrote: > > >> I am new to using Google App Engine and am having trouble with > >> textproperty(). How do I keep the formatting when someone submits > >> something? > > >> example: > >> Directions: > >> 1.Turn left > >> 2. Turn right > >> 3. Go straight > > >> Then I submit, and when I view it on the page, it turns out like this. > > >> Directions: > >> 1.Turn left 2. Turn right 3. Go straight. > > >> Thanks for help. > > >> -- > > >> You received this message because you are subscribed to the Google Groups > >> "Google App Engine" 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/google-appengine?hl=en. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" 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/google-appengine?hl=en.- Hide quoted text - > > - Show quoted text -
-- You received this message because you are subscribed to the Google Groups "Google App Engine" 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/google-appengine?hl=en.
