I was editing this question on russian.SE where the OP was asking about the meaning of a Russian poem. As the poem itself wasn't formatted properly, I wanted to fix the line breaks to make it easier to read. In the process of doing so, I essentially broke the poem down with the line breaks and added <br/>, so that it would look like so:

Line 1<br/>
Line 2<br/>
Line 3<br/>
Line 4<br/>

Then I highlighted the whole poem and clicked the "blockquote" button. I expected the block to just be indented with >, however besides that, all line breaks were deleted and the text became

> Line 1<br/> Line 2<br/> Line 3<br/>Line 4<br/>

While this produces the output I want, it's still messing up the original text making it more difficult for anyone who may want to edit the post later. I ended up having to do this manually for each of the lines.

I don't think changing the content on click of a formatting button is the right behaviour.

  • 3
    Please use two spaces rather than <br/> it makes everyones' life a lot easier as they don't have to go through removing them again... Jun 12 '13 at 13:32
  • 1
    Cool! I never realised that two spaces are equivalent to <br/>. I re-edited the post with the poem to replace all <br/> with two spaces. However this doesn't solve the original problem - the line breaks are still deleted when I click "blockquote" button.
    – Aleks G
    Jun 12 '13 at 13:35
  • 2
    @ben but in such case it's turned to > Line 1 Line 2 Line 3 Line 4 which is even worse as the line breaks are gone. Jun 12 '13 at 13:35
  • Even though you can just add two spaces at the end of each line as @ben suggested (and that’s the preferred way), this often bothers me when wanting to quote before correcting, so +1 to that.
    – Ry-
    Jun 12 '13 at 13:36
  • I wasn't answering the question @Sha :-). As Aleks has noted it makes no difference and this really annoys me as well... it's just that I've had to remove line breaks too many times from code and quotes where people thought they were being helpful when all they actually needed to do was click the quote or code button. Jun 12 '13 at 13:37

As a temporary work around until (if?) the bug is fixed, you can just add a single > character in the very beginning of the paragraph (with line breaks):

>Line 1<br />
Line 2<br/>
Line 3<br/>
Line 4<br/>

Results in:

Line 1
Line 2
Line 3
Line 4

  • Very interesting indeed. I guess the formatting engine treats everything between two sets of two-or-more consecutive line breaks as one paragraph. I'll keep that in mind.
    – Aleks G
    Jun 12 '13 at 13:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .