Skip to content

RTL languages break cells layout #28

@elldritch

Description

@elldritch

This is similar to the Unicode width handling issues in #8. In this case, instead of width, the problem is direction. I've run across examples of Arabic or Hebrew characters causing adjacent horizontal cells to render incorrectly. Here are some examples of incorrect renders along with other correct rows in the same table:

Example 1

Wrong:

+------+--------------+-----------------+---------------------------------------------------+-------------------------+-----------+-----------+-----------+--------+
| 852  | 1            | yaakov_h        | Yaakov - יעקב                                     | 2009-11-22 10:12:42 UTC | False     | 1073      | 399       | 146485 |
+------+--------------+-----------------+---------------------------------------------------+-------------------------+-----------+-----------+-----------+--------+

Right:

+------+--------------+-----------------+---------------------------------------------------+-------------------------+-----------+-----------+-----------+--------+
| 7    | 45           | paulg           | Paul Graham                                       | 2010-08-27 20:13:59 UTC | True      | 1384437   | 645       | 46957  |
+------+--------------+-----------------+---------------------------------------------------+-------------------------+-----------+-----------+-----------+--------+

Example 2

Wrong:

+------+--------------+-----------------+----------------------------------------------------+-------------------------+-----------+-----------+-----------+--------+
| 838  | 1            | za_ra_h_        | Zara ~ زهراء                                       | 2014-08-25 06:33:35 UTC | False     | 45863     | 783       | 17101  |
+------+--------------+-----------------+----------------------------------------------------+-------------------------+-----------+-----------+-----------+--------+

Right:

+------+--------------+-----------------+----------------------------------------------------+-------------------------+-----------+-----------+-----------+--------+
| 125  | 4            | AzulCrescent    | Azul Crescent                                      | 2016-05-05 20:03:43 UTC | False     | 28823     | 905       | 4308   |
+------+--------------+-----------------+----------------------------------------------------+-------------------------+-----------+-----------+-----------+--------+

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions