KT-5193 Make multiline strings foldable (#938)

* KT-5193 Make multiline strings foldable
 #KT-5193 Fixed

* Avoid multiple replace call
This commit is contained in:
Yoshinori Isogai
2016-08-29 23:52:29 +09:00
committed by Dmitry Jemerov
parent 1a1eb7dcfa
commit e1eba8f5c8
4 changed files with 60 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
val result1 = <fold text='""" 14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 1.0, 0.25, 1.0, 0.5, 2.0, 3.0, 3.0 ..."""' expand='true'>"""
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 1.0, 0.25, 1.0, 0.5, 2.0, 3.0, 3.0
14.55576559546314 - 0.25, 4.0, 1.0, 0.5, 1.0, 1.0, 3.0, 4.0, 3.0, 0.25, 3.0, 0.5, 3.0, 3.0, 2.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 2.0, 2.0, 1.0, 0.5, 1.0, 0.5, 2.0, 3.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 1.0, 0.25, 1.0, 0.5, 3.0, 3.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 2.0, 0.5, 2.0, 0.5, 3.0, 3.0, 2.5
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 2.0, 2.0, 1.0, 0.3333333333333333, 3.0, 0.5, 2.0, 3.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 2.0, 2.0, 3.0, 0.3333333333333333, 1.0, 0.5, 3.0, 2.0, 2.5
14.55576559546314 - 0.25, 4.0, 1.0, 0.5, 1.0, 1.0, 3.0, 4.0, 3.0, 0.3333333333333333, 1.0, 0.5, 3.0, 3.0, 2.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 2.0, 0.5, 2.0, 0.5, 3.0, 2.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 3.0, 2.0, 2.0, 0.5, 1.0, 0.5, 2.0, 2.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 3.0, 0.5, 2.0, 0.5, 2.0, 3.0, 2.5
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 2.0, 2.0, 1.0, 0.5, 3.0, 0.5, 1.0, 3.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 3.0, 2.0, 3.0, 0.5, 3.0, 0.5, 3.0, 2.0, 2.5
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.3333333333333333, 1.0, 2.0, 1.0, 0.3333333333333333, 2.0, 0.5, 1.0, 3.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 3.0, 2.0, 1.0, 0.5, 2.0, 0.5, 1.0, 3.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 1.0, 0.25, 2.0, 0.5, 2.0, 3.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 1.0, 0.3333333333333333, 2.0, 0.5, 3.0, 3.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 2.0, 0.25, 2.0, 0.5, 3.0, 2.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 2.0, 0.3333333333333333, 2.0, 0.5, 3.0, 2.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 2.0, 0.5, 3.0, 0.5, 1.0, 3.0, 3.0
14.55576559546314 - 0.25, 3.0, 0.25, 0.25, 1.0, 0.25, 1.0, 2.0, 3.0, 0.3333333333333333, 1.0, 0.5, 3.0, 3.0, 2.5
"""</fold>
val result2 = <fold text='""" other multiline string ..."""' expand='true'>"""other multiline string
without spaces
"""</fold>
val empty = <fold text='"""..."""' expand='true'>"""
"""</fold>