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: remove newlines before input-prompt text #6

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Conversation

bevzzz
Copy link
Owner

@bevzzz bevzzz commented Jan 26, 2024

This is a small fix for a bug that was introduced some time earlier and went unnoticed, because I ignored whitespace differences when inspecting the diffs between the .golden files.

Other than messing up the alignment for code cells and code outputs it did not affect the functionality, so other tests did not catch that either. The HTML that was produced was still valid and included the necessary data.

Anyways, that's the fix. As the commit message says, it's a bit dirty and the whole html.tag feels a bit contrived at the moment. I am planning to replace it with a more elegant "tagger" soon; that should clean up the code nicely.

In general: added a way to control if a newline should be added
after a tag or not. This is a dirty solution, but that's its only
real drawback at the moment.

v0.3.0 will ship with a decent rewrite of the HTML/CSS logic,
so I am going to postpone implementing a better solution until then.
@codecov-commenter
Copy link

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (d7249bd) 82.13% compared to head (90e1937) 82.13%.

Files Patch % Lines
render/html/wrapper.go 93.33% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #6   +/-   ##
=======================================
  Coverage   82.13%   82.13%           
=======================================
  Files          11       11           
  Lines         571      571           
=======================================
  Hits          469      469           
  Misses         81       81           
  Partials       21       21           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bevzzz bevzzz merged commit b138fc5 into main Jan 26, 2024
1 check passed
@bevzzz bevzzz deleted the fix/unwanted-newlines branch January 26, 2024 21:03
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