Forum Stats

  • 3,708,096 Users
  • 2,240,957 Discussions
  • 7,840,037 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

another editor anomoly

EdStevensEdStevens Posts: 27,790 Gold Crown

I think this has just started recently.  Or at least I've just started noticing it recently (last few weeks?)

It seems that when someone posts a bit of code, then uses the "advanced" editor's formatting option, most if not all of the spaces in the code get collapsed. Here's an example I just saw:

pastedImage_0.png

Notice on lines 1, 5, and 8

There are also some places (4, 6) where space was preserved, but I'm fairly confident I've seen other examples where all spaces had been stripped out.  I've never observed this happening to anything I've posted.

Answers

  • edited November 2016

    Yes, we're seeing this same formatting error when you format code blocks

    using HTML standard tags (e.g

    tags) as well.

    We have found a work around: Cut and paste accurately formatted blocks

    from a Word document into the WYSIWYG editor.

    It works about 75% of the time without any further manual spaces being

    added or such.

    It's on the list of requested fixes. Not sure when it's scheduled to

    actually be fixed.

    @monique may be able to comment further.

    LKR

  • EdStevensEdStevens Posts: 27,790 Gold Crown
    edited November 2016
    Laura Ramsey-Oracle wrote:Yes, we're seeing this same formatting error when you format code blocks using HTML standard tags (e.g 

    tags) as well.

    We have found a work around: Cut and paste accurately formatted blocks

    from a Word document into the WYSIWYG editor.

    It works about 75% of the time without any further manual spaces being

    added or such.

    It's on the list of requested fixes. Not sure when it's scheduled to

    actually be fixed.

    @monique may be able to comment further.

    LKR

    Ok.  I don't recall seeing it mentioned before (might have missed it) so thought I'd throw it out there.

  • BluShadowBluShadow Moderator Posts: 40,813 Red Diamond
    edited November 2016

    I don't recall that particular issue either.

    Never like putting things in Word and then copy/pasting from that... it adds all sorts of weird stuff and usually isn't good for code formatting.

  • EdStevensEdStevens Posts: 27,790 Gold Crown
    edited November 2016

    Just a bit more example.

    I just responded to a thread that had code formatting, and quoted the entire message.  The rendering of the formatted code was different between the original and the quote.

    The original looks fine. No collapsed spaces:

    pastedImage_0.png

    But in the quote, the spaces were collapsed:

    pastedImage_1.png

This discussion has been closed.