diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-06-27 22:42:12 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-06-27 22:42:12 +0000 |
commit | f8c503b8b0156ad81c0a1d44b8d338963f6afdb1 (patch) | |
tree | a787e783f982db882206076f9971cbf8dc79329c /app | |
parent | d61836103d32d51557a94658988f3a7a0b6930de (diff) | |
download | gitlab-ce-f8c503b8b0156ad81c0a1d44b8d338963f6afdb1.tar.gz |
Revert "Merge branch 'issue-form-multiple-line-markdown' into 'master'"
This reverts merge request !12458
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/lib/utils/text_utility.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/lib/utils/text_utility.js b/app/assets/javascripts/lib/utils/text_utility.js index 021f936a4fa..601d01e1be1 100644 --- a/app/assets/javascripts/lib/utils/text_utility.js +++ b/app/assets/javascripts/lib/utils/text_utility.js @@ -94,8 +94,8 @@ gl.text.insertText = function(textArea, text, tag, blockTag, selected, wrap) { startChar = !wrap && !currentLineEmpty && textArea.selectionStart > 0 ? '\n' : ''; - if (selectedSplit.length > 1 && (!wrap || (blockTag != null && blockTag !== ''))) { - if (blockTag != null && blockTag !== '') { + if (selectedSplit.length > 1 && (!wrap || (blockTag != null))) { + if (blockTag != null) { insertText = this.blockTagText(text, textArea, blockTag, selected); } else { insertText = selectedSplit.map(function(val) { |