Don't replace placeholders incorrectly when expandtab=0

Should fix issue #143 (just applies the change I detailed there)