diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-12-05 18:16:04 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-12-05 18:16:04 +0300 |
commit | b209ddcfc2d532f4dc5e508e00d89335fdb15caa (patch) | |
tree | 4ce09c842846efa76aa42f4282bb69664cdaf4df /core/src/test | |
parent | 7aa5b52a7e8cd69a384ef29aeeb199061b92584f (diff) | |
download | dokka-b209ddcfc2d532f4dc5e508e00d89335fdb15caa.tar.gz dokka-b209ddcfc2d532f4dc5e508e00d89335fdb15caa.tar.bz2 dokka-b209ddcfc2d532f4dc5e508e00d89335fdb15caa.zip |
Append line before file path in testData
Diffstat (limited to 'core/src/test')
-rw-r--r-- | core/src/test/kotlin/format/FileGeneratorTestCase.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/test/kotlin/format/FileGeneratorTestCase.kt b/core/src/test/kotlin/format/FileGeneratorTestCase.kt index 6d70292f..644d5baa 100644 --- a/core/src/test/kotlin/format/FileGeneratorTestCase.kt +++ b/core/src/test/kotlin/format/FileGeneratorTestCase.kt @@ -27,6 +27,9 @@ abstract class FileGeneratorTestCase { val byLocations = nodes.groupBy { location(it) } byLocations.forEach { (loc, _) -> if (byLocations.size > 1) { + if (sb.isNotBlank() && !sb.endsWith('\n')) { + sb.appendln() + } sb.appendln("<!-- File: ${relativeToRoot(loc)} -->") } sb.append(loc.file.readText()) |