mirror of https://github.com/sbt/sbt.git
Merge pull request #574 from sschuberth/fix-pipe-symbol-in-tree
Tree: Fix the pipe symbol to match the other UTF-8 symbols used
This commit is contained in:
commit
f4e98c6bc5
|
|
@ -36,7 +36,7 @@ object Tree {
|
|||
def showLine(isLast: Seq[Boolean]): String = {
|
||||
val initPrefix = init(isLast) {
|
||||
case true => " "
|
||||
case false => "| "
|
||||
case false => "│ "
|
||||
}.mkString
|
||||
|
||||
val lastPrefix = last(isLast) {
|
||||
|
|
|
|||
|
|
@ -18,11 +18,11 @@ object TreeTests extends TestSuite {
|
|||
'apply {
|
||||
val str = Tree[Node](roots)(_.children, _.label)
|
||||
assert(str == """├─ p1
|
||||
|| ├─ c1
|
||||
|| └─ c2
|
||||
|└─ p2
|
||||
| ├─ c3
|
||||
| └─ c4""".stripMargin)
|
||||
#│ ├─ c1
|
||||
#│ └─ c2
|
||||
#└─ p2
|
||||
# ├─ c3
|
||||
# └─ c4""".stripMargin('#'))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue