astrale-sharp / typstfmt

Apache License 2.0
253 stars 25 forks source link

[bug] Whitespace is removed before a quote character #85

Closed Andrew15-5 closed 1 year ago

Andrew15-5 commented 1 year ago

Before:

text "text

text 'text

After:

text"text

text'text

Bug was introduced in https://github.com/astrale-sharp/typstfmt/commit/ef5c762c5eca03b4e88e3fea202d3fef275be96e (not present in https://github.com/astrale-sharp/typstfmt/commit/2b733d01c03b0eb20d0aa39551573d0344de8676).

astrale-sharp commented 1 year ago

we're going to have a problem because don't becomes don 't otherwise, guess let's just respect the space before smartquote

astrale-sharp commented 1 year ago

thanks for your issue!

astrale-sharp commented 1 year ago

This should be fixed now!