#1
Greetings all, Hope all is well.
some information, I am using latest Trongate that has Pages.
Problem, I create a new module with desktop app and it does what I want, makes everything okay. The thing is when I save a new or update data in a module the data in database is always striped of line breaks from the data I just inserted into database.
Here is the rub, I create a page through the pages module and it saves the data text format and has the line breaks.
Am I doing something wrong? Or does making your own module take out line breaks now?
Sample:
what I insert,

The brown fox runs,
The brown fox runs fast,

What goes into database,
The brown fox runs,The brown fox runs fast,

Any ideas what's going on?
#2
Hi Tom, apologies for the delay been a bit side tracked. Will have a look at this for you soon.
#3

The thread creator has indicated that this post solved the problem or provided the best insight.

Members who post winning responses earn points for our leaderboard.
Points mean prizes!
hmm, I just had a quick look at the SQL dump again and your controller code. When editing in Pages and adding new lines to the lyrics it wraps a <p> tag to each new line but when you edit in a text field from a Desktop-created module it uses which seems to be filtering out new lines.

Here is a quick patch you can apply to get around this until we can work out a more sensible fix:just add it after the `get_data_from_post()` or you can choose to write the raw data to the database and add nl2br() before displaying it back into the view.

Hope this helps

Cheers,
Si
#4
Thanks DaFa, the fix worked, I'll be waiting for the Trongate update to fix this. Appreciate all the work being done here!