Thread: Kobo Patcher
View Single Post
Old 12-08-2013, 11:45 AM   #587
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by tshering View Post
I guess another way to achieve this (without counting) is adding \x58 to the replacement string.
Ah, I didn't know it accepted that way of specifying characters. But the terminating character needs to be zero in the plain string, the replace_xor_58 will encode it. So if it is allowed to include a null in the string (this would cause problems in C, maybe Python allows it?) then the solution would be to add \x00 as the last character in the string, e.g. icallaci's example would become:
Code:
`ReadingFooter {\n\tmin-height: 40px;\n\tmax-height: 70px;\n\tfont-size: 26px;\n\tqproperty-footerMargin: 15;\n}\n\n\x00`
GeoffR is offline   Reply With Quote