Minor glitch with external classes list import

Cwicly Plugin version:


There a small issue when importing external classes list.
If there are spaces in the list, they are not ignored and become part of the class names:


It doesn’t prevent CSS to be applied, since the dot in not output in the code, but the display is a bit strange.

All spaces (and better, comments) should be stripped from the string before importing.

Thank you!

Hi @yankiara,

Thank you for bringing this up!

Indeed, this could be addressed by stripping the external classes from any space between the dot and the first letter.

Apologies for the inconvenience.

I think you just need to brutally strip all spaces from the import input string, it looks easier to me.
Then after explode with coma, the generated classes will automatically be OK.

NOTE: The external class individual input already converts spaces to dashes.
It is only the list import which doesn’t handle spaces.

Thank you for your patience on this, @yankiara!

Importing an external class list should now strip any space with

Kindly let me know if this is the case on your end.

Thank you in advance.