diff options
author | Salvatore Bonaccorso <carnil@debian.org> | 2019-03-24 13:23:37 +0100 |
---|---|---|
committer | Salvatore Bonaccorso <carnil@debian.org> | 2019-03-24 13:23:37 +0100 |
commit | f4e3dbdc3954fdee6eb63b3afc47383763bdfbfb (patch) | |
tree | 9c510ac39409f7d1a3eb2da15e8b480b04f21b0e /bin | |
parent | f074bc9b023ba171ea477125c3e4ea00506d4806 (diff) | |
parent | dd8870d35e6bea61c46d779579363b369c873f4f (diff) |
Merge branch 'carnil/security-tracker-report-vuln-wrap-CVE-description'
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/report-vuln | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/report-vuln b/bin/report-vuln index eb1d713558..7e8f93b506 100755 --- a/bin/report-vuln +++ b/bin/report-vuln @@ -14,6 +14,7 @@ from __future__ import print_function import argparse from tempfile import NamedTemporaryFile import sys, re, urllib, os +from textwrap import wrap temp_id = re.compile('(?:CVE|cve)\-[0-9]{4}-XXXX') @@ -89,7 +90,9 @@ def get_cve(id): continue if desc and '<td colspan="2">' in line: - ret += '| ' + re.sub('.*<td colspan="2">', '', line) + line = re.sub('.*<td colspan="2">', '', line) + for line in wrap(line): + ret += '| ' + line + '\n' continue if desc and '</td>' in line: |