Skip to content

Changes not displaying for Notebook merge request

ipynb files usually have the source for each cell as an array with each line being an item. In some cases however the generator can decided to split them with \n, which broke the diff generation. We fix this by escaping the line break.

How to reproduce

  1. Import the project https://gitlab.com/bwsanders1/notebook_bug
  2. Without the changes, http://gdk.test:3000/root/notebook_bug/-/commit/ec3b2b260e9fd342100f10eae66f4a3b03fc4a34 should 500
  3. With the changes, it should display the semantic diff image

Closes #363429 (closed)

Edited by Eduardo Bonet

Merge request reports