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 bug in the "np" function. #3

Merged
merged 1 commit into from
Aug 11, 2020
Merged

Conversation

amirtadayon
Copy link

Slicing the variable "s" when returning causes the link not to appear properly since such slicing remove the closing square bracket. This issue would not raise if there is a blank line after the link. So to avoid adding a blank line after a link specifically at the end of a file such slicing on the variable "s" is removed.

The attached zipped file contains a jemdoc file using which this issue can be reproduced.
ReproduceBug_PR#3.zip

The following images also compare the before/after resolving the issue.
Before
After

Slicing the variable "s" when returning causes the link not to appear
properly since such slicing remove the closing square bracket. This
issue would not raise if there is a blank line after the link. So to
avoid adding a blank line after a link specifically at the end of a file
 such slicing on the variable "s" is removed.
@wsshin wsshin merged commit 4b83aa4 into wsshin:master Aug 11, 2020
@wsshin
Copy link
Owner

wsshin commented Aug 11, 2020

Have verified the bug and the solution. Thanks for the PR!

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