"cannot set attribute" exception on %paste

Repro: use the %paste magic on lines with inconsistent spacing on
all-whitespace lines.