Description
I use $OFS = "|||" so that it is easy to tell when strings have spaces vs arrays that are getting cast to string. This breaks multiple things like:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0|||0|||84|||72.746132" transform-origin="50% 50%" width="100%" height="100%">
Reproducable Steps
$OFS = "|||"
$inscribedCircle =
turtle id inscribedCircle width 42 height 42 turtles ([Ordered]@{
'square' = turtle square 42 fill '#4488ff' stroke '#224488'
'circle' = turtle circle 21 fill '#224488' stroke '#4488ff'
})
$inscribedCircle | Save-Turtle ./InscribedCirclePattern.svg pattern
# Observe no file saved
$inscribedCircle | Save-Turtle ./InscribedCircle.svg
# Observe no actual SVG content present and bad viewBox content
```posh
$OFS = " "
$inscribedCircle | Save-Turtle ./InscribedCirclePattern.svg Pattern
$inscribedCircle | Save-Turtle ./InscribedCircle.svg
Everything works great.
Description
I use $OFS = "|||" so that it is easy to tell when strings have spaces vs arrays that are getting cast to string. This breaks multiple things like:
Reproducable Steps
Everything works great.