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

Fix bug with indent whitespace #46

Closed
Konard opened this issue Jan 31, 2022 · 0 comments
Closed

Fix bug with indent whitespace #46

Konard opened this issue Jan 31, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Konard
Copy link
Member

Konard commented Jan 31, 2022

Reproducible example:

public static void BugTest2()
{
var source = @"father (lovesMom: loves mom)
son lovesMom
daughter lovesMom
all (love mom)";
var links = (new Platform.Protocols.Lino.Parser()).Parse(source);
var target = links.Format();
Assert.Equal(source,target);
}

Possible place of the problem:

INDENTATION = spaces:" "* &{ spaces.Count == state["Indentation"] }
INDENT = #{ state["Indentation"] += 4; }
UNDENT = #{ state["Indentation"] -= 4; }

@Konard Konard added the bug Something isn't working label Jan 31, 2022
@Konard Konard closed this as completed in eed3dc5 May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant