Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Whitespaces | FrontEnd Design
course content

Зміст курсу

Flask Intensive Course: Web Development with Python

WhitespacesWhitespaces

If we want to add something with the different new lines, like multiple lines: Let say:
Line 1
Line 2
Line 3

And we post it as you can see the whitespace and new lines are not preserved and are not being rendered here.

Let's go to recipes and the loop where the content is printed out. And inside <p> tag write style="white-space: pre-wrap". And go back and refresh.

As you can see, the whitespaces and new lines are all preserved. So, actually, we can have multiple paragraphs per recipe description.

Все було зрозуміло?

Секція 4. Розділ 6
course content

Зміст курсу

Flask Intensive Course: Web Development with Python

WhitespacesWhitespaces

If we want to add something with the different new lines, like multiple lines: Let say:
Line 1
Line 2
Line 3

And we post it as you can see the whitespace and new lines are not preserved and are not being rendered here.

Let's go to recipes and the loop where the content is printed out. And inside <p> tag write style="white-space: pre-wrap". And go back and refresh.

As you can see, the whitespaces and new lines are all preserved. So, actually, we can have multiple paragraphs per recipe description.

Все було зрозуміло?

Секція 4. Розділ 6
some-alt