comments = bug_comments_map[str(child.bug.id)]['comments']
lines = comments[0]['text'].splitlines()
for i, line in enumerate(lines):
- # look for a line with only 4 or more `-` and blank lines
- # before and after, like so:
- # ```
- #
- # -----
- #
- # ```
- if len(line) >= 4 and line == "-" * len(line) \
- and i >= 1 and lines[i - 1] == "" and (
- i > len(lines) or lines[i + 1] == ""):
- lines[i:] = []
- break
- if line == "<From here down doesn't go in MOU>":
+ # look for a line with only 2 or more `-` as the
+ # standard way in markdown of having a "break" (<hl />)
+ # this truncates the comment so that the RFP database
+ # has only the "summary description" but the rest may
+ # be used for "TODO" lists
+ l = line.strip()
+ if len(l) >= 2 and l == "-" * len(l) \
lines[i:] = []
break
comment += "\n".join(lines)