python-fluent icon indicating copy to clipboard operation
python-fluent copied to clipboard

The fluent.syntax parser doesn't recognize tabs

Open julienw opened this issue 4 weeks ago • 4 comments

For some reasons I had some tabs instead of spaces in my ftl file. It looks like the parser doesn't see these lines.

julienw avatar Nov 25 '25 14:11 julienw

Could you clarify what you mean by "doesn't see these lines"? In Fluent, tabs are not recognised as whitespace.

eemeli avatar Nov 27 '25 08:11 eemeli

I know that this was working fine with fluent js at least :-) but not with fluent python. Maybe the problem is the discrepency between these.

julienw avatar Nov 27 '25 13:11 julienw

If there's a discrepancy, we should resolve that. For that, could you share an ftl file which shows the difference?

eemeli avatar Nov 27 '25 15:11 eemeli

This file should show it: test.ftl.txt

The line with .heading has a tab at its start. It's working fine with fluent.js, but the python parser ignores the line.

julienw avatar Nov 28 '25 07:11 julienw