Skip to content

Commit 3e67a39

Browse files
committed
Updated ietf.sync.rfceditor.parse_index() to use the new rfc-index schema (changed placement of the page-count element).
- Legacy-Id: 16729
1 parent 3160f55 commit 3e67a39

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ietf/sync/rfceditor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ def extract_doc_list(parentNode, tagName):
293293
updated_by = extract_doc_list(node, "updated-by")
294294
obsoletes = extract_doc_list(node, "obsoletes")
295295
obsoleted_by = extract_doc_list(node, "obsoleted-by")
296+
pages = get_child_text(node, "page-count")
296297
stream = get_child_text(node, "stream")
297298
wg = get_child_text(node, "wg_acronym")
298299
if wg and ((wg == "NON WORKING GROUP") or len(wg) > 15):
@@ -302,8 +303,6 @@ def extract_doc_list(parentNode, tagName):
302303
pages = ""
303304
for fmt in node.getElementsByTagName("format"):
304305
l.append(get_child_text(fmt, "file-format"))
305-
if get_child_text(fmt, "file-format") == "ASCII":
306-
pages = get_child_text(fmt, "page-count")
307306
file_formats = (",".join(l)).lower()
308307

309308
abstract = ""

0 commit comments

Comments
 (0)