so-tag icon indicating copy to clipboard operation
so-tag copied to clipboard

First space in first tag is removed

Open trevorhreed opened this issue 10 years ago • 6 comments

For some reason, the first space in the first tag is removed when using this plugin. See screenshots for example:

sotag-screenshot-1

And the markup looks like this:

sotag-screenshot-2

You can see clearly that the input value contains a space between "Sam" and "Payne", however the tag does not.

trevorhreed avatar Aug 04 '15 17:08 trevorhreed

Oddly enough, if I append a space to the end of the tag value (e.g. "b07fbb53-00c8-4f8b-96c2-9918d0bbad70_Sam Payne ", then the tag displays as it should and the space is not removed.

trevorhreed avatar Aug 04 '15 17:08 trevorhreed

Thanks for the report I will take a look in a few hours

adamtester avatar Aug 04 '15 17:08 adamtester

Thanks. Said workaround is sufficient for us for now, but I thought you'd like to know.

trevorhreed avatar Aug 04 '15 17:08 trevorhreed

Do you have a live version I can play with? I can't seem to replicate it on my local. I assume the b07fbb53-00c8-4f8b-96c2-9918d0bbad70 is the primary key for the tags table?

adamtester avatar Aug 04 '15 18:08 adamtester

That's correct, that is the primary key. Unfortunately, I don't have an accessible version that you can play with. However, I just checked the version number; we're using version 1.0.0 (12.2013), so it's entirely possible this isn't an issue in the latest version. When I get a chance, I'll try plugging in the latest version to see if that resolves the issue.

trevorhreed avatar Aug 04 '15 19:08 trevorhreed

Have a look at the dev branch, it has the latest code although it's probably buggy, I've been making changes the last few days and have a few more todo before another release.

I don't remember fixing anything like your issue so it's probably still an issue :(

adamtester avatar Aug 04 '15 21:08 adamtester