python - <textarea> says it supports carriage return new line but it doesn't seem to - google app engine -
first off, here's screenshots illustrate issue.
i'm writing crowd-sourced lyric database web app on google app engine. have 2 text input boxes , text area lyrics. however, when grab data form add database entry, seems strip new lines. either that, or displaying them not working properly. here's code:
class addsong(webapp2.requesthandler): def post(self): song = song() song.title = self.request.get('title') song.artist = self.request.get('artist') song.data = self.request.get('data') song.put() self.redirect('/')
thanks taking time read this.
Comments
Post a Comment