kadet1090 / KeyLighter

Yet another syntax highlighter for PHP
https://keylighter.kadet.net
MIT License
32 stars 2 forks source link

UnifiedDiff: swallow trailing newlines #8

Closed Sobak closed 4 years ago

Sobak commented 4 years ago

This change fixes extra newlines being added after every diff.add and diff.remove token.

Before: image

After: image

Sobak commented 4 years ago

Actually credits go to @kadet1090 who suggested solution for this.

kadet1090 commented 4 years ago

Thanks!