Support » Plugin: Easy Table » [Bug] Easy Table replaces   with empty string

  • kmbt

    (@kmbt)


    In line 178 we have:
    $content = str_replace(‘ ‘,”,$content);

    I believe this is not a good decision because replacing non-breaking spaces with an empty string may lead to concatenation of separate words which may change the meaning of the text.

    Tables often contain numerical data with unit symbols, where inserting a non-breaking space between number and unit symbol, (eg. “3 cm”) is often considered a good practice.

    Furthermore, in some languages (eg. Polish), inserting non-breaking spaces after all one-letter conjunctions is considered a good typography practice because a hanging one letter conjunction in a normal-width text column is considered a typographic error. There is a plugin that inserts the non-breaking spaces automatically (https://wordpress.org/plugins/automatic-nbsp/), and the functionality collides with Easy Table’s nbsp; removal behavior.

    What i propose is one of the following:
    1. Do not remove  
    2. Replace   with a normal space.

    I would recommend solution 1. because of the reasons stated above.

Viewing 1 replies (of 1 total)
  • Oops, the forum script did not escape my nbsps 🙂
    It should be:

    In line 178 we have:
    $content = str_replace(‘ ‘,”,$content);

    And the two proposed solutions should stand:
    1. Do not remove nbsps
    2. Replace nbsp with a normal space.

Viewing 1 replies (of 1 total)
  • The topic ‘[Bug] Easy Table replaces   with empty string’ is closed to new replies.