Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert multiline string to single line string

I'm using Google App Engine and I need to put a multiline string in the datastore. Unfortunately, GAE does not allow that. I need this string to be multiline, so is there any way to convert a multiline string to a single line string and store it?

like image 960
Petwoip Avatar asked Oct 27 '25 03:10

Petwoip


1 Answers

You don't need no conversion:

google.appengine.ext.db.StringProperty(multiline=True)

like image 114
msw Avatar answered Oct 28 '25 15:10

msw