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

Indent level context lost in record initialization -- causes compilation failure #313

Closed
SteveGilham opened this issue Sep 22, 2018 · 2 comments

Comments

@SteveGilham
Copy link

Using fantomas . --recurse --indent 2 --pageWidth 90 again

Initializing items in a record

Before

                                       head = [ Doc.Verbatim """<script src="/script/modernizr-custom.js"></script>
...
}</style>"""                                    ]
                                       header = [ Doc.Verbatim """<h1>&#8220;Acrete&#8221;</h1>"""]

After

                              head =
                                [ Doc.Verbatim """<script src="/script/modernizr-custom.js"></script>
...
}</style>""" ]
                              header =
                                [ Doc.Verbatim """<h1>&#8220;Acrete&#8221;</h1>""" ]

where the closing bracket needs to be at least as indented as the opening one to compile.

@nojaf
Copy link
Contributor

nojaf commented Aug 30, 2019

Hey @SteveGilham , this sounds like something similar to the fix in e76f0e3.

Could you provide us with a complete example to reproduce this?

@SteveGilham
Copy link
Author

The file that showed the issue no longer shows it in 3.0.0-beta-002, as there has been some more aggressive folding of the earlier parts of the initialization; however, for the record, here it is

acreteScript.zip

@nojaf nojaf closed this as completed Sep 13, 2019
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