1

This is probably very simple. My database objects have a TextField. Now, when I add the contents of the TextFields to an html paragraph, there are no new lines. How can I make Django show those newlines? Thank you!

4
  • possible duplicate of Django doesn't display newline character when rendering text from database Commented Jun 22, 2015 at 17:44
  • Wait, there seems to be a problem... Commented Jun 22, 2015 at 17:45
  • Never mind, minor detail... Commented Jun 22, 2015 at 17:48
  • Could you select an answer if @Daniel Roseman has solved your problem? Commented Jun 22, 2015 at 17:49

1 Answer 1

3

Use the linebreaks template filter.

Sign up to request clarification or add additional context in comments.

1 Comment

That seems to do the trick, but suddenly, my text has lost all it's properties. Color, size etc. Weird...

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.