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

Uncommenting a block without trailing space borks indentation #129

Open
somini opened this issue May 4, 2020 · 2 comments
Open

Uncommenting a block without trailing space borks indentation #129

somini opened this issue May 4, 2020 · 2 comments

Comments

@somini
Copy link

somini commented May 4, 2020

When uncommenting a block of lines without a space prefix, the uncommented lines with that space keep them, instead of removing them.

This is similar to #77


Example Input:

commentstring=> %s
> Quote
>
> Multiline

Output (with leading spaces):

 Quote

 Multiline

Expected:

Quote

Multiline
@xunam
Copy link

xunam commented Jun 4, 2020

I came here to report this issue exactly, so instead I just add a comment to show interest. It would be nice to have a fix for this!

Also: in the example above, the second quoted line is a single > but the exact same thing happens if there is a trailing space after the > (a common pattern in quoted mail messages).

@somini
Copy link
Author

somini commented Jun 5, 2020

the exact same thing happens if there is a trailing space after the > (a common pattern in quoted mail messages).

Precisely my use case. I thought the trailing space would fix it, but you are right.

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