retext-project/retext

table alignment

Closed this issue · 2 comments

When using the colon character for alignment the table is not shown (the borders do not appear)

Example, in table below the borders do not appear:

Command line
./test_AML.sh inject --device GPU --event "Reset Required" --device-index 1

Thank you for the report.

It is actually a bug in QTextEdit, not in ReText. It happens because when you use colon, Qt produces the following HTML code:

<th style="text-align: left;">Command line</th>

And it looks like when an element has style, global CSS is not applied to it. I have forwarded this to Qt developers: https://bugreports.qt.io/browse/QTBUG-111285.

As a workaround, you can enable Qt WebEngine previewer (from the ‘Edit’ menu), it does not have this bug.