Fix style issue and correct 1-24

Escape sequences were being compared with the 'or' operator instead of
the 'and' operator. If I had left it alone, every escape sequence
would've borked it.