Skip to content

lines begin with 1 #523

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
May 18, 2020
Merged

lines begin with 1 #523

merged 2 commits into from
May 18, 2020

Conversation

anubhabsen
Copy link
Contributor

Fixes #316 by incrementing the div ids (ie l0 becomes l1, l1 becomes l2....) of the line number fields by 1.

@@ -159,6 +159,7 @@ async function showFile(source, file, revision, selectedLine) {
language,
lines: source.map((line, nb) => {
const coverage = file.coverage[nb];
nb = nb + 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good, but please:

  • move it after line 185;
  • add a comment before it to explain why we need to do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the changes. Please let me know if anything else is required. :)

@marco-c marco-c merged commit a2b191e into mozilla:master May 18, 2020
@marco-c
Copy link
Collaborator

marco-c commented May 18, 2020

Thanks!

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.

Make lines start from 1 instead of 0
2 participants