# Blockquote button fails when selected text begins with a blank line

**URL:** https://meta.discourse.org/t/blockquote-button-fails-when-selected-text-begins-with-a-blank-line/74339
**Category:** Bug
**Created:** [2017年十一月18日 23:40 UTC](https://meta.discourse.org/t/blockquote-button-fails-when-selected-text-begins-with-a-blank-line/74339 "2017-11-18T23:40:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [2017年十一月18日 23:40 UTC](https://meta.discourse.org/t/blockquote-button-fails-when-selected-text-begins-with-a-blank-line/74339/1 "2017-11-18T23:40:36Z")

</div>

I’ve seen the blockquote button fail to work a number of times, seemingly without any reason, but I think I finally figured out how to reproduce it.

If your selection includes a blank line at the beginning, it does not work. It’s a little hard to illustrate, but hopefully this helps (at the end of the recording, I make it work by re-selecting the text and being careful _not_ to select any blank lines above it):

 ![blockquote-fail](https://global.discourse-cdn.com/meta/original/3X/8/d/8d886192001fb9c50d7f9674fb16cfe9902f1128.gif)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年十一月19日 01:12 UTC](https://meta.discourse.org/t/blockquote-button-fails-when-selected-text-begins-with-a-blank-line/74339/2 "2017-11-19T01:12:05Z")

</div>

Aha let’s fix that @eviltrout.. pretend that ~~redacted client name~~ reported it as a bug 🙂

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2017年十一月20日 18:47 UTC](https://meta.discourse.org/t/blockquote-button-fails-when-selected-text-begins-with-a-blank-line/74339/3 "2017-11-20T18:47:46Z")

</div>

Fixed here:

[https://github.com/discourse/discourse/commit/b9595966d4d32f8020f7a84461c9d544bdd562f6](https://github.com/discourse/discourse/commit/b9595966d4d32f8020f7a84461c9d544bdd562f6)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年十一月20日 21:01 UTC](https://meta.discourse.org/t/blockquote-button-fails-when-selected-text-begins-with-a-blank-line/74339/4 "2017-11-20T21:01:19Z")

</div>


