Quote:
Originally Posted by tshering
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`