File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ <h4 class="anchor-target" id="{{ p.ad.plain_name|slugify }}">
9797 < div class ="panel-heading ">
9898 < h5 class ="panel-title "> < b > {{ p.pos.name }}</ b > ({{ p.discuss_time|date:"Y-m-d" }}{% if not p.for_current_revision %} for -{{ p.get_dochistory.rev}}{% endif %})</ h5 >
9999 </ div >
100- < div class ="panel-body "> < pre class ="ballot "> {{ p.discuss|wrap_text:80 |escape|urlize }}</ pre > </ div >
100+ < div class ="panel-body "> < pre class ="ballot pasted "> {{ p.discuss|escape|urlize }}</ pre > </ div >
101101 </ div >
102102 {% endif %}
103103
@@ -106,7 +106,7 @@ <h5 class="panel-title"><b>{{ p.pos.name }}</b> ({{ p.discuss_time|date:"Y-m-d"
106106 < div class ="panel-heading ">
107107 < h5 class ="panel-title "> < b > Comment</ b > ({{ p.comment_time|date:"Y-m-d" }}{% if not p.for_current_revision %} for -{{ p.get_dochistory.rev}}{% endif %})</ h5 >
108108 </ div >
109- < div class ="panel-body "> < pre class ="ballot "> {{ p.comment|wrap_text:80 |escape|urlize }}</ pre > </ div >
109+ < div class ="panel-body "> < pre class ="ballot pasted "> {{ p.comment|escape|urlize }}</ pre > </ div >
110110 </ div >
111111 {% endif %}
112112 {% endfor %}
Original file line number Diff line number Diff line change 11{% extends "base.html" %}
22{# Copyright The IETF Trust 2015, All Rights Reserved #}
33{% load origin %}
4+ {% load ietf_filters %}
45
56{% block title %}
67 Shepherd writeup for {{ doc.canonical_name }}-{{ doc.rev }}
1011 {% origin %}
1112 < h1 > Shepherd writeup< br > < small > {{ doc.canonical_name }}-{{ doc.rev }}</ small > </ h1 >
1213
13- < pre > {{writeup}}</ pre >
14+ < pre class =" pasted " > {{writeup|escape|urlize }}</ pre >
1415
1516 {% if can_edit %}
1617 < a class ="btn btn-primary " href ="{% url "doc_edit_shepherd_writeup " name=doc.name %} "> Edit</ a >
Original file line number Diff line number Diff line change @@ -184,6 +184,13 @@ pre {
184184 white-space : pre;
185185}
186186
187+ /* Some chunks of text are likely to be pasted into fields from other editing environments
188+ which do various things with line-wrapping. Preserve whitespace to the extent possible. */
189+ .pasted {
190+ white-space : pre-wrap;
191+ word-break : keep-all;
192+ }
193+
187194/* Make ampersands pretty */
188195/* This sets ampersand in a different font than the rest of the text. Fancy, but it's
189196really better to select a pretty font in the first place. Additionally, _which_ 'pretty'
You can’t perform that action at this time.
0 commit comments