spreed icon indicating copy to clipboard operation
spreed copied to clipboard

One liner code block renders as empty

Open mpivchev opened this issue 2 years ago • 6 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Write a one line code block like:
image

Expected behaviour

The code actually gets reformatted like:

image

... and doesn't show up:

image

Actual behaviour

Should look like this:

one liner

Browser name: Reproducable on Safari but visible on all

mpivchev avatar Aug 17 '23 14:08 mpivchev

Works fine here 🤔

nickvergessen avatar Aug 17 '23 14:08 nickvergessen

Works fine here 🤔

Reproducable on Safari but visible on all browsers

mpivchev avatar Aug 17 '23 14:08 mpivchev

Reproducable on Safari but visible on all browsers

Please test it here as well, to see, if it's a Talk or library issue: https://nextcloud-vue-components.netlify.app/#/Components/NcRichText?id=ncrichtext-1

Antreesy avatar Aug 20 '23 15:08 Antreesy

Can not reproduce on iPad Safari

nickvergessen avatar Aug 21 '23 05:08 nickvergessen

Please test it here as well, to see, if it's a Talk or library issue:

I did, it seems to work there. grafik

But can also reproduce the missing line in safari locally: grafik

nickvergessen avatar Nov 21 '23 07:11 nickvergessen

The actual problem seems to be the posting. If I post one line code from another browser it also renders on Safari.

But if I post the message it gets sent as:

  ```hi\n```

instead of

  ```\nhi\n```

and therefore the single line/word is interpreted as "language"/flavor

grafik

nickvergessen avatar Nov 21 '23 07:11 nickvergessen