Skip to content

Commit e38f738

Browse files
committed
Fixed some s!<br/>!<br>! and s!</li>!<li>! in the scribe template templates, and also where html escaping is and isn't applied.
- Legacy-Id: 5086
1 parent dde89d1 commit e38f738

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

ietf/templates/iesg/scribe_doc.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% comment %}
1+
{% comment %}<!--
22
Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
33
All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>
44
@@ -30,7 +30,7 @@
3030
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3131
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3232
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33-
{% endcomment %}{% comment %}
33+
-->{% endcomment %}{% comment %}
3434
Some parts Copyright (c) 2009 The IETF Trust, all rights reserved.
3535
{% endcomment %}
3636
{% load ietf_filters %}
@@ -54,8 +54,8 @@
5454
{% endif %}
5555
{% endwith %}
5656
<br>Token: {{ doc.obj.ad.plain_name|escape }} ({{doc.obj.area_acronym}} area)
57-
{% if doc.obj.note %}{# note: note is not escaped #}
58-
<br>Note: {{ doc.obj.note|safe }}
57+
{% if doc.obj.note %}
58+
<br>Note: {{ doc.obj.note }}
5959
{% endif %}
6060
{% for ipr in doc.obj.ipr %}
6161
{% ifequal ipr.ipr.status 1 %}
@@ -70,13 +70,13 @@
7070
{% if p.discuss %}
7171
<li>
7272
<a href="#{{doc.obj.name}}+{{p.ad|slugify}}+discuss">{{ p.ad }}: Discuss [{{ p.discuss_time }}]</a>:
73-
<br>{{ p.discuss }}
73+
<br>{{ p.discuss|escape }}
7474
</li>
7575
{% endif %}
7676
{% if p.comment %}
7777
<li>
7878
<a href="#{{doc.obj.name}}+{{p.ad|slugify}}+comment">{{ p.ad }}: Comment [{{ p.comment_time }}]</a>:
79-
<br>{{ p.comment }}
79+
<br>{{ p.comment|escape }}
8080
</li>
8181
{% endif %}
8282
{% endif %}

ietf/templates/iesg/scribe_doc2.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@
4444
{% if p.pos and p.discuss %}
4545
<li>
4646
<a name="{{doc.obj.name}}+{{p.ad|slugify}}+discuss">{{ p.ad }}: Discuss [{{ p.discuss_time }}]</a>:
47-
<br/>{{ p.discuss }}
48-
</li>
47+
<br>{{ p.discuss|escape }}
48+
<li>
4949
<a name="{{doc.obj.name}}+{{p.ad.plain_name|slugify}}+discuss">{{ p.ad.plain_name }}: Discuss [{{ p.discuss_time }}]</a>:
50-
<br><pre>{{ p.discuss|wrap_text:80 }}</pre>
50+
<br><pre>{{ p.discuss|wrap_text:80|escape }}</pre>
5151

5252
{% endif %}
5353
{% if p.pos and p.comment %}
5454
<li>
5555
<a name="{{doc.obj.name}}+{{p.ad|slugify}}+comment">{{ p.ad }}: Comment [{{ p.comment_time }}]</a>:
56-
<br/>{{ p.comment }}
57-
</li>
56+
<br>{{ p.comment|escape }}
57+
<li>
5858
<a name="{{doc.obj.name}}+{{p.ad.plain_name|slugify}}+comment">{{ p.ad.plain_name }}: Comment [{{ p.comment_time }}]</a>:
59-
<br><pre>{{ p.comment|wrap_text:80 }}</pre>
59+
<br><pre>{{ p.comment|wrap_text:80|escape }}</pre>
6060
{% endif %}
6161
{% endfor %}
6262
</ul>

0 commit comments

Comments
 (0)