Skip to content

Commit fe193a6

Browse files
committed
convert backslash N into System.lineSeparator()
1 parent 7552226 commit fe193a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/scala/org/combinators/templating/twirl/Python.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ class Python private (elements: immutable.Seq[Python], text: String)
3535

3636
/** Indents this fragment by 4 spaces. */
3737
def indent: Python = {
38-
Python(fullText.linesIterator.map(l => s" $l").mkString("\n"))
38+
Python(fullText.linesIterator.map(l => s" $l").mkString(System.lineSeparator()))
3939
}
4040

4141
/** Indents everything except the first line in this fragment by 4 spaces. */
4242
def indentExceptFirst: Python = {
4343
val lines: Seq[String] = fullText.linesIterator.to(Seq)
44-
Python((lines.head +: lines.tail.map(l => s" $l")).mkString("\n"))
44+
Python((lines.head +: lines.tail.map(l => s" $l")).mkString(System.lineSeparator()))
4545
}
4646

4747
/** Returns the code of this fragment as a String. */

0 commit comments

Comments
 (0)