Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multi line text interpolation support #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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