Archived
1
0
Fork 0

Update image_table.py

This commit is contained in:
yzhh 2022-01-08 00:21:08 +08:00 committed by GitHub
parent eec737c75d
commit 028ad877b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ async def image_table_render(table: Union[ImageTable, List[ImageTable]]):
for row in tbl.data:
cs = []
for c in row:
cs.append(escape(c))
cs.append(escape(re.sub(r'\n', '<br>', c))
d.append(cs)
w = len(tbl.headers) * 500
if w > max_width: