Skip to content
Commits on Source (2)
......@@ -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:
......