Changing to sorted diffs for recent and previous IESG announcements. Doing this shows what seems to be a flaw in the old scripts, listing some informational documents among the Protocol Announcements. Adding an acceptable diff for the remaining diff which is a result of this.
- Legacy-Id: 619
This commit is contained in:
parent
6d0fa4f4d7
commit
d1f5520067
|
@ -3,8 +3,8 @@
|
|||
200 /iesg/telechat/2007/apr/
|
||||
200 /iesg/telechat/detail/354/ https://datatracker.ietf.org/public/view_telechat_minute.cgi?command=view_minute&id=354
|
||||
200,sort /iesg/ann/independent/ https://datatracker.ietf.org/public/rfc_editor_announcement.cgi
|
||||
200 /iesg/ann/ietf-doc/recent/ https://datatracker.ietf.org/public/recent_announcement.cgi
|
||||
200 /iesg/ann/ietf-doc/previous/ https://datatracker.ietf.org/public/previous_announcement.cgi
|
||||
200,sort /iesg/ann/ietf-doc/recent/ https://datatracker.ietf.org/public/recent_announcement.cgi
|
||||
200,sort /iesg/ann/ietf-doc/previous/ https://datatracker.ietf.org/public/previous_announcement.cgi
|
||||
200 /iesg/ann/detail/2422/ https://datatracker.ietf.org/public/recent_announcement.cgi?command=show_detail&ballot_id=2422
|
||||
200 /iesg/ann/detail/1563/ https://datatracker.ietf.org/public/previous_announcement.cgi?command=show_detail&ballot_id=1563
|
||||
404 /iesg/ann/detail/567/
|
||||
|
|
|
@ -26,6 +26,8 @@ def run_tests(module_list, verbosity=1, extra_tests=[]):
|
|||
def reduce_text(html, pre=False, fill=True):
|
||||
if html.count("<li>") > 5*html.count("</li>"):
|
||||
html = html.replace("<li>", "</li><li>")
|
||||
if not fill:
|
||||
html = re.sub("<br ?/?>", "<br/><br/>", html)
|
||||
html = re.sub(r"(?i)(RFC) (\d+)", r"\1\2", html) # ignore "RFC 1234" vs. "RFC1234" diffs
|
||||
html = re.sub(r"\bID\b", r"I-D", html) # idnore " ID " vs. " I-D " diffs
|
||||
text = html2text(html, pre=pre, fill=fill).strip()
|
||||
|
|
4
test/diff/_iesg_ann_ietf-doc_recent_
Normal file
4
test/diff/_iesg_ann_ietf-doc_recent_
Normal file
|
@ -0,0 +1,4 @@
|
|||
--- https://datatracker.ietf.org/public/recent_announcement.cgi
|
||||
+++ /iesg/ann/ietf-doc/recent/
|
||||
@@ -132,0 +132,1 @@
|
||||
+Date Sent: March 20, 2007
|
Loading…
Reference in a new issue