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

Trim Empty Start/End Lines #98

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

zolrath
Copy link

@zolrath zolrath commented Nov 30, 2022

It's quite easy to select the end of a line with no text, or an empty line at the start/end of the code you intend to screenshot.

This trims the resulting HTML of any blank lines at the start/end of the code, removing the need to reselect.

With this selection:

selection

Old behavior:

old selection

New Behavior:

new selection

The result of this value isn't used but it often fails when clicking on empty lines, resulting in gaps of highlighted text when there are new lines present.

Removing this line fixes this issue and removes an unused variable.
It's quite easy to select the end of a line with no text, or an empty line at the start/end of the code you intend to screenshot.

This trims the resulting HTML of any blank lines at the start/end of the code, removing the need to reselect.
Copy link

@Foxengton Foxengton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good feature

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