Quoting indent weirdness

Posted on
  • Select everything in this post, including the lines below this

    Click Reply (it'll auto-quote the stuff selected)

    The indent is off, it auto indents a couple of levels after reaching newlines

  • Select everything in this post, including the lines below this

    Click Reply (it'll auto-quote the stuff selected)

    The indent is off, it auto indents a couple of levels after reaching newlines

    Like that

  • Select everything in this post, including the lines below this

    Click Reply (it'll auto-quote the stuff selected)

    The indent is off, it auto indents a couple of levels after reaching newlines

    It is because for the second and third quoted line there are two of these “>” symbols

    I have edited to only have one for the third line

  • derp

  • Yeah, I get what makes it indent 2 levels deep

    What I don't get is why, when you select 3 lines that have no indentation (like my first post) and click reply, the forum decides that the first line deserves one > and the ones below deserve > >

  • Is it a hard vs soft return thing maybe? If I quote I usually manually add > at the start, rather than use the quote function.

  • It does seem like it's only with the combined reply/quote function. Where you've highlighted a bunch of text from an existing comment and hit reply which auto makes it into a quote and slightly mangles the indentation.

    Might be related to the hard/soft, break/paragraph though.
    quoting a br seems to not put in any >, but quoting a new paragraph puts the > there, so maybe related logic

    Writing something
    this had a return before the line
    this had a return
    this had a shift-return
    this had a return.

  • Writing something

    this had a return before the line
    this had a return
    this had a shift-return
    this had a return.

    Nope... seems not

  • @Velocio unless it's by design, though I can't see why it'd be the case

  • Might be related to the hard/soft, break/paragraph though.

    quoting a br seems to not put in any >, but quoting a new paragraph puts the > there, so maybe related logic

    Writing something
    this had a return before the line
    this had a return
    this had a shift-return

    It's a bug.

    Anyone know JavaScript well enough to take a look?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Quoting indent weirdness

Posted by Avatar for duncs @duncs

Actions