code-syntax-block icon indicating copy to clipboard operation
code-syntax-block copied to clipboard

Do not apply line breaks for default syntax

Open omri86 opened this issue 4 years ago • 6 comments

In continuation to #94 - the solution works great but with one caveat - when using the default "plain text" lines break is on by default. IMO it should use the same formatting as all of the code snippets and not apply line breaks. Thanks!

omri86 avatar Jul 19 '21 15:07 omri86

Do you have a snippet I can test with? I'm not sure what you mean by this.

The content should just be wrapped with a pre tag, so will use whatever is included in the content.

mkaz avatar Jul 19 '21 16:07 mkaz

@mkaz you can take a look here: https://dev.bitolog.com/grpc-long-lived-streaming/ Under the section of Error handling - these snippets, when choosing some syntax, are shown in a single line. After the latest fix, I remove the syntax selection (which was bash), and they are broken with line breaks according to the box size. Let me know if that's not clear - I can repro and add screenshots

omri86 avatar Aug 03 '21 08:08 omri86

ok, I understand now. So your preference is the same for both with or without language selected?

In this case, if as plain text, it should scroll and keep everything on one line?

mkaz avatar Aug 03 '21 17:08 mkaz

Yes, I think it should be the same for with or without language selection.

And yes, for plain text it should be scrolled and keep it in one line.

Thanks a lot!

omri86 avatar Aug 04 '21 13:08 omri86