gristlabs / grist-core

Grist is the evolution of spreadsheets.
https://www.getgrist.com/
Apache License 2.0
7.04k stars 311 forks source link

Bogus identation for multiline strings within formulas #1227

Open guillett opened 4 days ago

guillett commented 4 days ago

Describe the current behavior

="""A
B
C"""

generates

A
    B
    C

Steps to reproduce

  1. create a formula in a new document

Describe the expected behavior

It should generate

A
B
C

I pretty sure this comes from theindentcall onhttps://github.com/gristlabs/grist-core/blob/main/sandbox/grist/gencode.py#L108` but I couldn't create an appropriate test and bug fix.

Where have you encountered this bug?

Instance information (when self-hosting only)

No response