eclipse-archived / ceylon.formatter

A formatter for the Ceylon programming language, written in Ceylon.
Apache License 2.0
14 stars 11 forks source link

Indentation written after a multi-line string literal #128

Closed lucaswerkmeister closed 8 years ago

lucaswerkmeister commented 8 years ago
String s = "a
            b".string;

String s = "a
            b"    .string;
lucaswerkmeister commented 8 years ago

Not too hard… writeIndentation() takes care to not write indentation if we’re not at the start of a line, but some code paths bypass it. Let’s move that logic into the countingWriter.