Gist edition breaks its content

Hello,

On RhodeCode 5.0.0.beta21,
I noticed that an edition of a Gist after first save breaks the content.

How to reproduce

  1. Create a multiline Gist
  2. Save
  3. Click Edit
  4. Save again

What happens

At first, my text looked like this:

# Server:
# --
# create the new repo
cd /volume1/git/
git init MyNewRepo.git

During the editing phase, the content is not rendered correctly:

b'# Server:\r\n# --\r\n# create the new repo\r\ncd /volume1/git/\r\ngit init MyNewRepo.git'

So as soon as I edit it, it breaks the formatting.

What is expected

The edition form of a gist should look exactly the one at creation, meaning it should render the existing text correctly (not as a Python string).

I suppose it’s a little bug, should be simple to fix. :slightly_smiling_face:
Justin

Thank you.

It was a regression during some refactor, fixed in .beta24 image

2 Likes