retext-project / retext

ReText: Simple but powerful editor for Markdown and reStructuredText
GNU General Public License v2.0
1.88k stars 196 forks source link

table alignment #608

Closed carlos-mazieri closed 1 year ago

carlos-mazieri commented 1 year ago

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
mitya57 commented 1 year ago

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.

carlos-mazieri commented 1 year ago

Thank you. Carlos

On Sun, Feb 19, 2023 at 4:11 PM Dmitry Shachnev @.***> wrote:

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:

Command line

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.

— Reply to this email directly, view it on GitHub https://github.com/retext-project/retext/issues/608#issuecomment-1436068460, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5EBZBYMM55XAIGFYYBDLLWYJV6VANCNFSM6AAAAAAULLYGLU . You are receiving this because you authored the thread.Message ID: @.***>