Fix empty line substitutions (noted by Joshua Hudson).