View Single Post
Old 02-27-2019, 01:20 AM   #192
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by geek1011 View Post
I don't think nbsps will work, as QString::simplified removes all chars which return true for QChar::isSpace, which includes https://www.compart.com/en/unicode/category/Zs. I could write a patch to prevent this though (it's in N3TableOfContentsWidget::setContent(Shortcover const&)), and I might add the ability to use spaces for TOC depth feature to seriesmeta. Also, if this method is used, the chapter titles should probably be normalized too (simplified also removes repeated whitespaces within the string).
That's unfortunate. I suppose stripping leading and trailing spaces makes sense for something like this and that's simple way to do this and remove anything else that might be bad. I'll try it just in case. Or maybe there is something else suitable.
davidfor is offline   Reply With Quote