diff --git a/ietf/utils/soup2text.py b/ietf/utils/soup2text.py index cda9e6ea8..7e050a48b 100755 --- a/ietf/utils/soup2text.py +++ b/ietf/utils/soup2text.py @@ -51,6 +51,8 @@ def normalize(str): # Normalize whitespace at the beginning and end of the string str = re.sub("^[ \t\n]+", " ", str) str = re.sub("[ \t\n]+$", " ", str) + # remove comments + str = re.sub("(?s)", "", str) # remove xml PIs and metainformation str = re.sub("]*>", "", str) str = re.sub("<\?[^>]*\?>", "", str)