View Single Post
Old 07-02-2020, 07:15 PM   #4258
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,025
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Story url is this.
That description isn't using spaces to indent--it's using non-breaking spaces. Which makes a kind of sense: HTML explicitly reduces any amount of normal whitespace to a single whitespace.

It doesn't appear to be easy to get that 0xa0 character into the regexp--at least in plugin. I can do it in CLI, but when I paste it into the plugin personal.ini it gets saved as a normal space.

You can, however, put that regexp line in a file and then pull it into the personal.ini. See attached replace.txt and use with something like:

Code:
add_to_replace_metadata_filelist:file:///C:/Users/username/Desktop/replace.txt
Getting exactly the expression you want is left as an exercise for the reader.

(BTW, if you have 'Smarten Punctuation' turned on, it will sometimes convert that leading non-breaking whitespace into an indent CSS. That puzzled me for a bit.)
Attached Files
File Type: txt replace.txt (22 Bytes, 170 views)
JimmXinu is offline   Reply With Quote