use bs4 for pre2br; fix style sheet for tables
Also: load default.css from the actual file if the package is not zipped.
This commit is contained in:
@ -53,7 +53,7 @@ def pre_table(s_table):
|
||||
for i, cell in enumerate(row):
|
||||
if cols_width[i] < len(cell.text):
|
||||
cols_width[i] = len(cell.text)
|
||||
text = '<pre><code>'
|
||||
text = '<pre class="table"><code>'
|
||||
for i, row in enumerate(rows):
|
||||
for j, cell in enumerate(row):
|
||||
text += '| ' + ''.join(str(node) for node in cell.contents) + ' ' * (cols_width[j] - len(cell.text))
|
||||
|
||||
Reference in New Issue
Block a user