Skip to content

Commit 8088ac0

Browse files
committed
Merge pull request #138 from iElectric/master
consistency
2 parents ab6085c + 3ab9f2d commit 8088ac0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

css/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Your file should now look like this:
109109
<div>
110110
<p>published: {{ post.published_date }}</p>
111111
<h1><a href="">{{ post.title }}</a></h1>
112-
<p>{{ post.text }}</p>
112+
<p>{{ post.text|linebreaks }}</p>
113113
</div>
114114
{% endfor %}
115115
</body>
@@ -160,7 +160,7 @@ And now add a class `post` to your `div` containing a blog post.
160160
<div class="post">
161161
<p>published: {{ post.published_date }}</p>
162162
<h1><a href="">{{ post.title }}</a></h1>
163-
<p>{{ post.text }}</p>
163+
<p>{{ post.text|linebreaks }}</p>
164164
</div>
165165

166166
We will now add declaration blocks to different selectors. Selectors starting with `.` relate to classes. There are many great tutorials and explanations about CSS on the Web to help you understand the following code. For now, just copy and paste it into your `mysite/static/css/blog.css` file:
@@ -219,7 +219,7 @@ Then surround the HTML code which displays the posts with declarations of classe
219219
<div class="post">
220220
<p>published: {{ post.published_date }}</p>
221221
<h1><a href="">{{ post.title }}</a></h1>
222-
<p>{{ post.text }}</p>
222+
<p>{{ post.text|linebreaks }}</p>
223223
</div>
224224
{% endfor %}
225225

@@ -232,7 +232,7 @@ in the `blog/templates/blog/post_list.html` with this:
232232
<div class="post">
233233
<p>published: {{ post.published_date }}</p>
234234
<h1><a href="">{{ post.title }}</a></h1>
235-
<p>{{ post.text }}</p>
235+
<p>{{ post.text|linebreaks }}</p>
236236
</div>
237237
{% endfor %}
238238
</div>

django_forms/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ so that the template will look like:
240240
<a class="btn btn-default" href="{% url 'post_edit' pk=post.pk %}"><span class="glyphicon glyphicon-pencil"></span></a>
241241
</div>
242242
<h1>{{ post.title }}</h1>
243-
<p>{{ post.text }}</p>
243+
<p>{{ post.text|linebreaks }}</p>
244244
{% endblock %}
245245

246246
In `blog/urls.py` we add this line:

extend_your_application/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ We will start with adding a link inside `blog/templates/blog/post_list.html` fil
1919
<div class="post">
2020
<p>published: {{ post.published_date }}</p>
2121
<h1><a href="">{{ post.title }}</a></h1>
22-
<p>{{ post.text }}</p>
22+
<p>{{ post.text|linebreaks }}</p>
2323
</div>
2424
{% endfor %}
2525
{% endblock content %}
@@ -130,7 +130,7 @@ It will look like this:
130130
{% endif %}
131131
</div>
132132
<h1>{{ post.title }}</h1>
133-
<p>{{ post.text }}</p>
133+
<p>{{ post.text|linebreaks }}</p>
134134
{% endblock %}
135135

136136
Once again we are extending `base.html`. In the `content` block we want to display a post's published_date (if it exists), title and text. But we should discuss some important things, right?

0 commit comments

Comments
 (0)