Extra spaces added to tags!

TalkTalk about LibraryThing

Join LibraryThing to post.

Extra spaces added to tags!

This topic is currently marked as "dormant"—the last message is more than 90 days old. You can revive it by posting a reply.

1Bettesbooks
Edited: Mar 10, 2020, 4:03 pm

Has anyone else noticed that when you create tags when adding books and then save - there are extra spaces added and a lot of new tags are created.

For example
https://www.librarything.com/work/11025539

these are the tags exactly as entered:
*KU free series, *overdrive, ti-f, au-m, zzUS Washington, mystery, cozy mystery, 2018, zseries of(3)

check it out - here is how it appears when saved:
*KU free series, *overdrive, ti-f, au-m, zzUS Washington, mystery, cozy mystery, 2018, zseries of(3)

I must go correct that leading space or a new tag is created (which I don't need).

The new tags are listed at the end of All tags on my home page.

2norabelle414
Mar 10, 2020, 4:09 pm

https://www.librarything.com/work/11025539/book/162964584

I do indeed see extra spaces before tags on that page for your book, but I've never seen it on my own books.

What page are you on when you add the tags?

3timspalding
Mar 10, 2020, 5:11 pm

>1 Bettesbooks:

Strange. Where are you adding them?

4Bettesbooks
Edited: Mar 10, 2020, 5:24 pm

>2 norabelle414:,>3 timspalding: The big Add Books tab - I search by ASIN and then edit. The tag field is empty before I add my string of tags.

Or when I edit from your books list. Where I make edits when I read books, add reviews etc.

5Bettesbooks
Edited: Mar 10, 2020, 5:23 pm

>2 norabelle414: Have you looked for them. I caught the extra tags simply because my tag count had gone up so astronomically and when I entered a tag the drop down provided more than one choice.

It wasn't until I did All tags and all collections that I saw them listed at the very end of all previous tags and did some looking for what the problem could be when I saw the extra spaces.

6timspalding
Mar 11, 2020, 12:02 pm

Got it. Your tag contains a non-breaking space (Unicode U+00A0 : NO-BREAK SPACE NBSP). You must be grabbing it from somewhere that's adding it.

Ideally, I'd go through the code to prevent this everywhere, along with a number of other oddballs—the Mongolian vowel separator, etc. But the problem is limited enough, and the job would be large enough, that I don't think I can justify the time at present.

7Bettesbooks
Edited: Mar 11, 2020, 5:39 pm

>ok, I'll keep correcting.

Still it is interesting that this only started a week ago when I have been creating and editing the same way for the past three years.

Go figure .. Microsoft probably added something to my browser or excel that wasn't there before!

8AnnieMod
Mar 11, 2020, 11:06 pm

>7 Bettesbooks:

One thing I do is to go through Notepad when copying from online sources - copy from Excel/browser/whatever, paste into Notepad (or Notepad++ or any other text editor that is NOT WordPad). Then copy from there. This should clear the weird non-space spaces thingies.

Or export your Excel into csv and open with notepad again.

9Bettesbooks
Mar 12, 2020, 3:31 am

>8 AnnieMod: Thanks for feedback!