Skip to content

Conversation

@hishnash
Copy link

@hishnash hishnash commented Aug 6, 2022

Currently Splash does not support multi line string interpolation for swift.

However this is a feature of swift and is very useful to use when blogging as keeping the line length short is important for mobile/iPad viewers.

Before:
image

After:
image

This fix now supports multi line text interpolation within multi line strings.

It however does not support dealing with the edge case were there is a string nested within the interpolation that itself includes a closing brace. I feel that is quite a bit of an edge case and supporting it would add a lot of complexity.

let str = """
Hello \(name ?? "closing-branch-within-string-)")
"""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant