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

Add strutils.indentation and make unindent use it #15264

Merged
merged 11 commits into from
Sep 22, 2020

Conversation

Clyybber
Copy link
Contributor

@Clyybber Clyybber commented Sep 3, 2020

Closes nim-lang/RFCs#161
Closes #11975

Closes #15263 , this PR is an alternative to #15263, main difference is indentation beeing a seperate proc and the loop determining the indentation of a line exiting early if the indentation is greater than or equal to the minimum indentation of the already processed lines.

Copy link
Contributor

@dom96 dom96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the compiler changes included by accident?

@Clyybber
Copy link
Contributor Author

Clyybber commented Sep 5, 2020

@dom96 Yeah, more or less. This PR depends on default parameter fixes from #15270, and I accidently pushed to this branch instead of a seperate one. Should be gone now.

@Clyybber Clyybber merged commit d67c5cb into nim-lang:devel Sep 22, 2020
ee7 added a commit to ee7/Nim that referenced this pull request Nov 10, 2020
The `dedent` and `unindent` links were introduced by commit d67c5cb
(nim-lang#15264).
ringabout pushed a commit that referenced this pull request Nov 11, 2020
The `dedent` and `unindent` links were introduced by commit d67c5cb
(#15264).
narimiran pushed a commit that referenced this pull request Nov 16, 2020
The `dedent` and `unindent` links were introduced by commit d67c5cb
(#15264).

(cherry picked from commit 42c434f)
PMunch pushed a commit to PMunch/Nim that referenced this pull request Jan 6, 2021
The `dedent` and `unindent` links were introduced by commit d67c5cb
(nim-lang#15264).
mildred pushed a commit to mildred/Nim that referenced this pull request Jan 11, 2021
* Add strutils.indentation and make unindent use it

* Code style

* Fix bootstrapping

* Improve wording

* Fix test

* Introduce without breaking change

* Fix

* Reduce diff

* Fix docs link

* Add since annotation

* Update changelog
mildred pushed a commit to mildred/Nim that referenced this pull request Jan 11, 2021
The `dedent` and `unindent` links were introduced by commit d67c5cb
(nim-lang#15264).
irdassis pushed a commit to irdassis/Nim that referenced this pull request Mar 16, 2021
The `dedent` and `unindent` links were introduced by commit d67c5cb
(nim-lang#15264).
ardek66 pushed a commit to ardek66/Nim that referenced this pull request Mar 26, 2021
The `dedent` and `unindent` links were introduced by commit d67c5cb
(nim-lang#15264).
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

Successfully merging this pull request may close these issues.

Multi-line string literals (blocks of lines)
2 participants