diff --git a/dump_all_bcsvs.py b/dump_all_bcsvs.py index 88747ff..b32e08a 100644 --- a/dump_all_bcsvs.py +++ b/dump_all_bcsvs.py @@ -43,16 +43,21 @@ crow = [] for field in row_class.fields(): value = getattr(row, field) + htmlTitle = None if isinstance(value, bytes): htmlValue = binascii.hexlify(value).decode('ascii') dataValue = htmlValue elif isinstance(value, tuple): - htmlValue = "%s" % (html.escape(value[1], True), html.escape(value[0])) + htmlValue = html.escape(value[0]) + htmlTitle = html.escape(value[1]) dataValue = value else: htmlValue = repr(value) dataValue = htmlValue - bits.append('