Skip to content

[CC Projects] Lines are sometimes off by one line #1259

@DivyaMahadevan

Description

@DivyaMahadevan

Description

I think this might be variable and hard to pin down, but for some reason, the code in the instructions is sometimes off by one line. It's typically that there's a trailing new line, but it ends up throwing off the highlighting as a result. This is an issue in prod and staging.

Steps to repro

  1. Visit https://projects.raspberrypi.org/en/projects/editor-hello-world/editor
  2. Go to step 3
  3. The highlighting is on the comment instead of the code , the line numbers disappear one line before the code

Expected behaviour

The line numbers and highlighting match up with the lines of code.

Note this might be because:

  • Use of emojis throw off the line height
  • Random whitespace new lines added at the top of the code block

Screenshots

Image Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions