Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Whitespaces | FrontEnd Design
Flask Intensive Course: Web Development with Python
course content

Зміст курсу

Flask Intensive Course: Web Development with Python

Flask Intensive Course: Web Development with Python

1. Introduction to Flask
2. Database
3. Implement CRUD
4. FrontEnd Design

bookWhitespaces

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