Skip to content

Commit f5a0892

Browse files
committed
More HTML validation fixes
- Legacy-Id: 2204
1 parent c4d6649 commit f5a0892

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

ietf/idrfc/markup_txt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def markup(content):
5858

5959
content = re.sub("\n(.+\[Page \d+\])\n\f\n(.+)\n", """\n<span class="m_ftr">\g<1></span>\n<span class="m_hdr">\g<2></span>\n""", content)
6060
content = re.sub("\n(.+\[Page \d+\])\n\s*$", """\n<span class="m_ftr">\g<1></span>\n""", content)
61-
# TODO: remove remaining FFs (to be valid XHTML)
61+
# remove remaining FFs (to be valid XHTML)
62+
content = content.replace("\f","\n")
6263

6364
content = re.sub("\n\n([0-9]+\\.|[A-Z]\\.[0-9]|Appendix|Status of|Abstract|Table of|Full Copyright|Copyright|Intellectual Property|Acknowled|Author|Index)(.*)(?=\n\n)", """\n\n<span class="m_h">\g<1>\g<2></span>""", content)
6465

ietf/templates/ipr/details.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ <h1>{{ ipr.title|escape }}</h1>
213213
<td colspan="2">
214214
C. Does this disclosure apply to all IPR owned by
215215
the submitter?:
216-
<span class="iprdata">>{{ ipr.applies_to_all }}</span>
216+
<span class="iprdata">{{ ipr.applies_to_all }}</span>
217217
</td>
218218
</tr>
219219
{% else %}
@@ -230,7 +230,7 @@ <h1>{{ ipr.title|escape }}</h1>
230230
{% if ipr.document_sections %}
231231
<tr class="{% cycle row_parity %}"><td class="iprlabel"></td><td class="iprdata">{{ ipr.document_sections|escape|linebreaks }}</td></tr>
232232
{% else %}
233-
<tr class="{% cycle row_parity %}"><td class="iprlabel"></td><td></span><i>No information submitted</i></td></tr>
233+
<tr class="{% cycle row_parity %}"><td class="iprlabel"></td><td><i>No information submitted</i></td></tr>
234234
{% endif %}
235235
{% endif %}
236236
</tbody>
@@ -316,7 +316,7 @@ <h1>{{ ipr.title|escape }}</h1>
316316
<td colspan="2">
317317
<span class="iprdata">Note: The individual submitting this template represents and warrants
318318
that he or she is authorized by the Patent Holder to agree to the
319-
above-selected licensing declaration.</span>>
319+
above-selected licensing declaration.</span>
320320
</td>
321321
</tr>
322322
</table>

ietf/templates/meeting/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "base.html" %}
1+
{% extends "base.html" %}{% load ietf_filters %}
22
{# Copyright The IETF Trust 2007, All Rights Reserved #}
33
{% block title %}IETF {{ meeting_num }} Preliminary &amp; Interim Materials{% endblock %}
44
{% block morecss %}
@@ -43,7 +43,7 @@ <h2 class="ietf-divider">Training</h2>
4343
<tr>
4444
<td style="width:12em;"><a name="wg-{{ wg.acronym }}"></a><b>{{ wg.acronym|upper }}{% ifequal wg.group_type_str "BOF" %} <font color="red">({{ wg.group_type_str }})</font> {% endifequal %}</b><br/>
4545
{% for slide in wg.slides %}
46-
<a href="http://www.ietf.org/proceedings/{{ slide.file_loc }}">{{ slide.slide_name|escape }}</a><br/>
46+
<a href="http://www.ietf.org/proceedings/{{ slide.file_loc }}">{{ slide.slide_name|clean_whitespace }}</a><br/>
4747
{% endfor %}
4848
</td></tr></table>
4949
{% endfor %}

ietf/templates/meeting/list_group.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<table class="ietf-materials">
1+
{% load ietf_filters %}<table class="ietf-materials">
22
<tr>
33
<td style="width:12em;"><a name="wg-{{ wg.acronym }}"></a><b>{% ifequal wg.acronym "plenaryw" %}Wednesday<br/>Plenary{%else%}{% ifequal wg.acronym "plenaryt" %}Thursday<br/>Plenary{%else%}{{ wg.acronym|upper }}{%endifequal%}{%endifequal%}
44
{% ifequal wg.group_type_str "BOF" %} <font color="red">({{ wg.group_type_str }})</font> {% endifequal %}</b><br/>
@@ -7,7 +7,7 @@
77
{% if wg.agenda_file %}<a href="http://www.ietf.org/proceedings/{{ wg.agenda_file }}">Agenda</a>{% else %}<span style="background:#ff8888;padding:0 2px;">No agenda received</span> {% endif %}<br/>
88
{% if wg.minute_file %} <a href="http://www.ietf.org/proceedings/{{ wg.minute_file }}">Minutes</a>{% else %}No minutes received{% endif %}<br/>
99
{% for slide in wg.slides %}
10-
<a href="http://www.ietf.org/proceedings/{{ slide.file_loc }}">{{ slide.slide_name|escape }}</a><br/>
10+
<a href="http://www.ietf.org/proceedings/{{ slide.file_loc }}">{{ slide.slide_name|clean_whitespace }}</a><br/>
1111
{% endfor %}
1212
</td></tr>
1313
</table>

0 commit comments

Comments
 (0)