jupyter / papyri

MIT License
82 stars 17 forks source link

Do not allow Newline in literal inline nodes. #350

Closed Carreau closed 6 months ago

Carreau commented 6 months ago

When a literal span two lines, as we directly extract the bytes offsets from tree sitter, we do end up including the newline.

This make it slightly more complicated to fix in the rendering as we now need to consider newline separately in the wrapping logic.

With this we normalize newline to spaces as if the text was all written on the same line.