Fixed indentation for lines with mixed string separators (#324, #388).
Fixed variable localization.