Skip to content

Fix output when hljs multi-line element contains an empty line #48

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

Merged
merged 2 commits into from
Sep 26, 2018

Conversation

anlambert
Copy link
Contributor

When a highlightjs multi-line element (for instance a multi-line comment)
contains an empty line, the resulting output numbered line was containing
a "{1}" string.

This PR is an improvement over PR #43 and fixes issue #42.

When a highlightjs multi-line element (for instance a multi-line comment)
contains an empty line, the resulting output numbered line was containing
a "{1}" string.
This fix handles the empty line special case.
swhmirror pushed a commit to SoftwareHeritage/swh-web that referenced this pull request Sep 26, 2018
Until observed issue got fixed upstream, use a patched version that
properly renders a multi-line comment in highlighted code.

A pull request has been submitted to the original author:
wcoder/highlightjs-line-numbers.js#48

Closes T1209
@wcoder wcoder changed the base branch from master to dev September 26, 2018 20:58
@wcoder wcoder self-requested a review September 26, 2018 20:58
Copy link
Owner

@wcoder wcoder left a comment

Choose a reason for hiding this comment

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

Awesome!

Thanks for your help!

Closed #43

@wcoder wcoder merged commit 0e411b1 into wcoder:dev Sep 26, 2018
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