We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the issue
A single space before or after a newline in a multi-line string is not highlighted.
To Reproduce the issue
Create the source string "Hello\n world." and view it in the editor.
Expected behavior
I expect to see "Hello" on the first line and " world." on the second line with the leading space highlighted.
Server configuration and status
Hosted Weblate - Gramps project (trial)
The actual string is here. The space before "Available" in the English source string is not highlighted and will probably be missed by translators.
Suggested Fix
On line 68 in the trans/templatetags/translations.py file, specify the re.MULTILINE regular expression flag.
re.MULTILINE
e.g. WHITESPACE_RE = re.compile(r"( +| $|^ )", re.M)
WHITESPACE_RE = re.compile(r"( +| $|^ )", re.M)
Sorry, I haven't set up a development environment to test this yet.
The text was updated successfully, but these errors were encountered:
3347831
Thank you for your report; the issue you have reported has just been fixed.
Sorry, something went wrong.
nijel
No branches or pull requests
Describe the issue
A single space before or after a newline in a multi-line string is not highlighted.
To Reproduce the issue
Create the source string "Hello\n world." and view it in the editor.
Expected behavior
I expect to see "Hello" on the first line and " world." on the second line with the leading space highlighted.
Server configuration and status
Hosted Weblate - Gramps project (trial)
The actual string is here. The space before "Available" in the English source string is not highlighted and will probably be missed by translators.
Suggested Fix
On line 68 in the trans/templatetags/translations.py file, specify the
re.MULTILINE
regular expression flag.e.g.
WHITESPACE_RE = re.compile(r"( +| $|^ )", re.M)
Sorry, I haven't set up a development environment to test this yet.
The text was updated successfully, but these errors were encountered: