Closed Bug 1419782 Opened 7 years ago Closed 7 years ago

[compare-locales] DefinesParser should only take a single whitespace between key and value

Categories

(Localization Infrastructure and Tools :: compare-locales, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Pike, Assigned: Pike)

References

Details

(Keywords: regression)

Attachments

(1 file)

This is a regression from bug 1399059, in .inc files, everything after a single ' ' is the value, notably:

#define foo  

with two trailing spaces defines foo to be ' '.
Assignee: nobody → l10n
Comment on attachment 8930965 [details]
bug 1419782, .inc files only use one whitespace to separate key and value,

https://reviewboard.mozilla.org/r/202056/#review207710

::: compare_locales/tests/test_defines.py:180
(Diff revision 1)
> +        # funny formatting of trailing whitespace to make it explicit
> +        # and flake-8 happy
> +        self._test('''\
> +#define one \n\
> +#define two  \n\
> +#define tre   \n\

I like this "trick" notation!
Attachment #8930965 - Flags: review?(stas) → review+
https://hg.mozilla.org/l10n/compare-locales/rev/bcb7487741d704009e9e51111c02734a29e7ba59, FIXED.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: