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

list: add unindent all function #217

Merged
merged 3 commits into from Aug 3, 2022
Merged

list: add unindent all function #217

merged 3 commits into from Aug 3, 2022

Conversation

mneira10
Copy link
Contributor

@mneira10 mneira10 commented Aug 2, 2022

Proposed Changes

This adds a function to unindent the list item to the base of the list, regardless of the indentation level its in.

I wrote this up after needing it in my personal projects. WDYT?

@coveralls
Copy link

coveralls commented Aug 2, 2022

Pull Request Test Coverage Report for Build 2786577285

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 2678006308: 0.0%
Covered Lines: 3093
Relevant Lines: 3093

💛 - Coveralls

list/list.go Outdated Show resolved Hide resolved
Copy link
Owner

@jedib0t jedib0t left a comment

Choose a reason for hiding this comment

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

Can you please add a unit-test to verify this functionality and ensure that Render() renders properly and does not get broken?

Edit: I really appreciate the contribution! ❤️

@sonarcloud
Copy link

sonarcloud bot commented Aug 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mneira10
Copy link
Contributor Author

mneira10 commented Aug 3, 2022

Ok, added some tests!

Copy link
Owner

@jedib0t jedib0t left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@jedib0t jedib0t merged commit 6bf8d65 into jedib0t:main Aug 3, 2022
@jedib0t
Copy link
Owner

jedib0t commented Aug 3, 2022

@mneira10 I've merged the PR. Let me know if you need a tag, or if it can wait.

@mneira10
Copy link
Contributor Author

mneira10 commented Aug 3, 2022

A tag would be nice! But I'm not in a hurry, I can wait for it to get bundled with other stuff for a little bit

@jedib0t
Copy link
Owner

jedib0t commented Aug 3, 2022 via email

@jedib0t
Copy link
Owner

jedib0t commented Aug 3, 2022

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.

None yet

3 participants