LibreY icon indicating copy to clipboard operation
LibreY copied to clipboard

[Bug?] API title should be trimmed of literal newlines and whitespace (start/end)

Open OdinVex opened this issue 10 months ago • 3 comments

I'm not sure if it's a feature or a bug/nicety-to-fix, but API query titles are showing up with "\n \n Welcome - Gentoo Linux\n \n " (such as using the template gentoo&p=2&t=0). Is that intended? Perhaps they could be trimmed of newlines and whitespace?

OdinVex avatar Apr 18 '25 02:04 OdinVex

I can't remember which search engine it was using (it set to auto).

OdinVex avatar Apr 18 '25 04:04 OdinVex

Hmm this seems like something that would be nice to fix but also possibly requires a rewrite/change in the fallback engine setting.

Ahwxorg avatar May 09 '25 11:05 Ahwxorg

Hmm this seems like something that would be nice to fix but also possibly requires a rewrite/change in the fallback engine setting.

...Or just a simple ltrim and trim of whitespace in API response...?

OdinVex avatar May 09 '25 17:05 OdinVex