in save string, add each layer to a new line. This helps with readability and text manipulation (if we want to edit the save file directly for whatever reason)
This commit is contained in:
@@ -488,7 +488,7 @@ struct
|
|||||||
val bintree = merge (qtree, grid)
|
val bintree = merge (qtree, grid)
|
||||||
val coords = BinTree.foldr (toSaveStringFolder, bintree, [])
|
val coords = BinTree.foldr (toSaveStringFolder, bintree, [])
|
||||||
val coords = String.concat coords
|
val coords = String.concat coords
|
||||||
val str = " [ " ^ coords ^ " ] "
|
val str = "\n [ " ^ coords ^ " ]"
|
||||||
in
|
in
|
||||||
str :: acc
|
str :: acc
|
||||||
end
|
end
|
||||||
@@ -498,7 +498,7 @@ struct
|
|||||||
val size = Int.max (canvasWidth, canvasHeight)
|
val size = Int.max (canvasWidth, canvasHeight)
|
||||||
val f = toSaveStringTreeFolder size
|
val f = toSaveStringTreeFolder size
|
||||||
|
|
||||||
val initial = ["}\n"]
|
val initial = ["\n}\n"]
|
||||||
val acc = LayerTree.foldr (f, layerTree, initial)
|
val acc = LayerTree.foldr (f, layerTree, initial)
|
||||||
val acc =
|
val acc =
|
||||||
String.concat
|
String.concat
|
||||||
|
|||||||
Reference in New Issue
Block a user