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

Fix for trimming code when using gutter #146

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

nimah79
Copy link
Contributor

@nimah79 nimah79 commented Aug 28, 2024

When the gutter is enabled, the code is trimmed. Assume we have the following code block:

trim-1

Currently, it's rendered as follows:

trim-2

This PR changes the way the code is getting trimmed when using gutter. Now only linefeeds (\ns) are being trimmed. The result will be as follows:

trim-3

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10600152934

Details

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

Totals Coverage Status
Change from base Build 10578407183: 0.0%
Covered Lines: 1558
Relevant Lines: 1675

💛 - Coveralls

@brendt brendt merged commit ab99c05 into tempestphp:main Aug 30, 2024
4 checks passed
@brendt
Copy link
Member

brendt commented Aug 30, 2024

Nice, thanks!

@brendt
Copy link
Member

brendt commented Aug 30, 2024

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.

3 participants