Ignore leading whitespace when creating step error markers

This stops error markers from appearing beside the wrong line