Skip to content

Conversation

jarda-svoboda
Copy link
Member

@jarda-svoboda jarda-svoboda commented Jul 7, 2023

This PR slightly changes behavior of the Default parser's placeholders. In previous versions, all trailing spaces have been trimmed. This change will result in this behavior:

{{ undefined_key; default: Default value; }}
// => 'Default value'
{{ undefined_key; default: Default value ; }}
// => 'Default value '
{{undefined_key; default: Default value}}
// => 'Default value'
{{ undefined_key; default: Default value }}
// => 'Default value '
  • Edit whitespace trimming
  • Update tests

Closes sveltekit-i18n/lib#111

@jarda-svoboda jarda-svoboda added the Default parser Issue related to the Default parser label Jul 7, 2023
@jarda-svoboda jarda-svoboda merged commit 4a0920f into master Jul 7, 2023
@jarda-svoboda jarda-svoboda deleted the feat/trailing-spaces branch July 7, 2023 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Default parser Issue related to the Default parser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trailing spaces
1 participant