Symbols ' and " in awards descriptions, categories

TalkBug Collectors

Join LibraryThing to post.

Symbols ' and " in awards descriptions, categories

1Nevov
Sep 16, 2024, 8:56 am

Including a ' or " symbol (apostrophe or quotation mark), in the description section of an award, or in one of the award's categories makes it show up with backslash, as /' or /" and editing it won't remove the backslash.

A similar thing was fixed recently for awards organizations descriptions, which came out of the following topic: https://www.librarything.com/topic/363360#8623006 – but since that topic has been made for a bug with Litsy not LT, I thought better to keep LT bugs about broken symbols in their own place. And of course low priority versus the other recent issues going on with the site, I'm sure.

Example of an award description, with both apostrophe and quotation mark:
https://www.librarything.com/award/5804/descriptions
\"Why have a literary award for children?\"

I think backslash character itself might also be affected, as when I saved the description a second time it changed into \\\'

Example of an award category with an apostrophe going wrong:
https://www.librarything.com/award/599/categories
Children\'s Picture

It might be affecting saving awards in general, as on that last example above going through the Organize screen I tried to add a Winner tick, to the book Chez Bob, but the edit wouldn't stick, maybe because its category is Children's Picture which has an apostrophe in it. Not sure and didn't want to stomp around too heavily trying to test things.

2waltzmn
Sep 16, 2024, 11:01 am

>1 Nevov:

Same problem, I think, as this one, since that too just showed up in the last day or two:

https://www.librarything.com/topic/363360#n8623068.

(As an aside, if you think you have a bug, it's always worth looking at other bug reports in the last three or four days, so you can add your reports to existing threads rather than starting new ones. With all the problems LT is having right now, just saving the staff a little time could be important!)

3kristilabrie
Sep 16, 2024, 12:07 pm

Tested and verified. If I edit the description and category on an award and attempt to remove the \ slashes, they remain after saving.

4knerd.knitter
Sep 16, 2024, 2:17 pm

Looking into this.

5knerd.knitter
Sep 16, 2024, 3:06 pm

This should be fixed now.

6Nevov
Sep 17, 2024, 7:20 pm

Reopened as I've found something still is awry:

It used to be possible to have hyperlink text within a description, for example this award has two hyperlinks in its description, at the end "See also..." and "Article and longlist in...":
https://www.librarything.com/award/1801/descriptions

However trying to edit the description now results in the URLs becoming mangled:
Eg. https://en.wikipedia.org/wiki/Lost_Man_Booker_Prize
when saving, gets changed into: %5C%22https://en.wikipedia.org/wiki/Lost_Man_Booker_Prize%5C%22

That's editing the description using the 'view HTML' method; I've tried using the Insert Link button on the advanced text editor, that doesn't seem to do anything at all though.

7Nevov
Sep 17, 2024, 7:56 pm

I've also found that if the last line or word in a description is formatted, in italics, bold, underlined, the formatting overflows out beyond the description when you go back to that award's front page (most noticeable with italics as the whole right sidebar goes italics) :-)

Can test that by editing any award description last word into italics or bold or underline. I can't swear for certain that's something new from this week or if it always existed, I've looked for about 30 mins to try and find an award that pre-existingly has a description ending in some formatting, but haven't found one alas.

8gilroy
Sep 17, 2024, 8:08 pm

>6 Nevov: No, i think that is on purpose since there is now a link field on the awards page. When I saw URLs in awards descriptions, I moved them to links from the description.

9knerd.knitter
Sep 17, 2024, 8:47 pm

>6 Nevov: It used to be possible to have hyperlink text within a description

You are correct. That was a mistake in our recent changes. I think it's fixed now.

As far as >7 Nevov:, can you give me an example of one that is like this now?

10Nevov
Sep 17, 2024, 9:11 pm

>8 gilroy:
Yes I generally do that too when they are significant links and only situated in there as a legacy from the old award pages.

>9 knerd.knitter:
I'll concoct one for you, see the italics on here now:
https://www.librarything.com/award/1801/Lost-Man-Booker-Prize

11knerd.knitter
Sep 18, 2024, 8:07 am

>10 Nevov: I'll concoct one for you

Thank you. I see it now. When I tried it, I couldn't get it to happen.

12knerd.knitter
Sep 18, 2024, 8:33 am

Fixed the italics overflow issue.

13Nevov
Sep 18, 2024, 3:07 pm

Thanks, I haven't been able to break it in a few edits so far, looks to have done the trick.