Skip to content

Remove trailing blanks and empty last lines from files - #300

Open
mrdeep1 wants to merge 1 commit into
eclipse-tinydtls:mainfrom
mrdeep1:blanks
Open

mrdeep1 wants to merge 1 commit into
eclipse-tinydtls:mainfrom
mrdeep1:blanks

Conversation

@mrdeep1

@mrdeep1 mrdeep1 commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

This does touch a lot of files, but unlikely there will any merge issues of outstanding PRs.

Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
@obgm

obgm commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Although not really nice to look at in some view modes, I am not sure if removing those really is worth the effort.

Regarding the empty last lines: IIRC this has something to do with $SOMETHING_ON_WINDOWS complaining when there is no newline at the end of the last line or so? But I guess you would be able to check that.

@mrdeep1

mrdeep1 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

Although not really nice to look at in some view modes, I am not sure if removing those really is worth the effort.

pre-commit picks up and fixes this things automatically, thus tidying up the code, even if there is no programatic difference.

Regarding the empty last lines: ....

When editing in Windows, this has the potential to throw up problems, so being rigorous here (no empty last lines, final line terminated correctly) helps.

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.

2 participants