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

Lines with unusual characters at start inside of multiline text do not get properly recognized. #620

Closed
elenakrittik opened this issue Aug 31, 2023 · 4 comments

Comments

@elenakrittik
Copy link

elenakrittik commented Aug 31, 2023

registration_title = Registration
registration_description_1 = You don't have a playable character yet. Let's create one!
    Answer the questions that come up.

    **What's your favorite playstyle?**

registration_choose_an_answer = Choose an answer

image

The problem arises from the usage of * at the start of a non-first line of a multiline string. If i place a * at the beginning of Answer ... the error moves there, and if i remove all * from the start the error disappears.

Reproducible on Fluent Playground

@eemeli
Copy link
Member

eemeli commented Aug 31, 2023

This isn't a bug; the * is not a valid indented_char, which is the rule used for first characters on pattern lines after the first.

@elenakrittik
Copy link
Author

If so, what would be the correct way to include *s at the start of a multiline string? Put them as { "*" }? And also, python-fluent works with the example l10n just fine. Is such disrepancy in behavior considered an implementation bug?

@eemeli
Copy link
Member

eemeli commented Sep 1, 2023

Yes, that's the right way to quote the *. And it sounds like you're describing a bug in python-fluent.

@elenakrittik
Copy link
Author

Thanks, sorry for disturbing.

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

No branches or pull requests

2 participants