You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the LexicalPreservingPrinter, adding a statement identical to the previous statement breaks the Difference Algorithm because it confuses it, it makes it believe that the first statement was the one that was added, as a consequence the indentation breaks.
Will be submitting a PR for this with a test case.
The text was updated successfully, but these errors were encountered:
moraispgsi
changed the title
Adding an IfStmt to a method should add indentation
LexicalPreservingPrinter Difference Algorithm breaks indentation after adding identical statements.
Apr 28, 2019
When using the LexicalPreservingPrinter, adding a statement identical to the previous statement breaks the Difference Algorithm because it confuses it, it makes it believe that the first statement was the one that was added, as a consequence the indentation breaks.
Will be submitting a PR for this with a test case.
The text was updated successfully, but these errors were encountered: