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

Applies larger line spacing only to diff tables. #777

Merged
merged 1 commit into from
Dec 3, 2023

Conversation

trevorshannon
Copy link
Contributor

This reverts the <body> line-height adjustment introduced in #730 and instead applies it to <table> elements so that the increased line-height only applies to HTML table diffs. This higher line height was originally introduced to emulate the GitHub web diff rendering.

With this change, text-based diffs will go back to regular line heights. See #774

As a visual, here are the results of diff: table and diff: unified for the html reporter. Note that these were rendered in Chrome as different email clients can render the HTML differently (e.g. web Gmail ignores the line-height anyway)

Table (note 1.5 line height)

Screenshot 2023-12-01 at 6 01 42 PM

Unified (note 1.0 line height)

Screenshot 2023-12-01 at 6 02 55 PM

@thp thp merged commit d1fe95b into thp:master Dec 3, 2023
5 checks passed
@trevorshannon trevorshannon deleted the bug/line-height branch December 3, 2023 21:40
@trevorshannon trevorshannon restored the bug/line-height branch December 3, 2023 21:41
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