[Bug] Easy Table replaces with empty string
-
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://www.ads-software.com/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.
- The topic ‘[Bug] Easy Table replaces with empty string’ is closed to new replies.