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 markdown parsing of multiline text #227

Merged
merged 3 commits into from
May 31, 2022
Merged

Fix markdown parsing of multiline text #227

merged 3 commits into from
May 31, 2022

Conversation

HeavyWombat
Copy link
Member

@HeavyWombat HeavyWombat commented May 31, 2022

Fixes #225
Follow-up of #226

  • Fix assumptions about text being markdown by default for multiline output
  • Fix markdown parsing in multiline diff
  • Fix broken test case

David Mather and others added 3 commits May 31, 2022 19:44
Unify usage of color formating to avoid parsing of markdown in multiline
text content that leads to unwanted output rendering.

Simplify `dimgray` function to use same style as other color functions.

Add test case to verify output is rendered as expected.
With the unified text rendering, the unchanged output is not also
colored line by line rather than coloring the line feed character as
part of one big color format. Therefore the expected test output is
looking slightly different in raw mode.
@HeavyWombat HeavyWombat changed the title fix/issue 225 Fix markdown parsing of multiline text May 31, 2022
@codecov
Copy link

codecov bot commented May 31, 2022

Codecov Report

Merging #227 (708585d) into main (64fdf3c) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #227      +/-   ##
==========================================
+ Coverage   82.11%   82.13%   +0.01%     
==========================================
  Files          13       13              
  Lines        1303     1304       +1     
==========================================
+ Hits         1070     1071       +1     
  Misses        173      173              
  Partials       60       60              
Flag Coverage Δ
unittests 82.13% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/dyff/colors.go 100.00% <100.00%> (ø)
pkg/dyff/output_human.go 76.70% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 64fdf3c...708585d. Read the comment docs.

@HeavyWombat HeavyWombat merged commit 4b398d4 into main May 31, 2022
@HeavyWombat HeavyWombat deleted the fix/issue-225 branch May 31, 2022 18:29
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.

HumanReport output with additions including multiple '_' treats them as formatting directives in output
1 participant