summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-06-01 17:20:04 -0400
committerJoram Wilander <jwawilander@gmail.com>2017-06-01 17:20:04 -0400
commitb46320a08939b64b0611404233d0f9b53dd4407d (patch)
tree04f3ac1ce91829ef40577ca3f1539750f63fee3d /webapp
parent8ad057c2c7f8f05c183f4e1b91d3eee112c8831d (diff)
downloadchat-b46320a08939b64b0611404233d0f9b53dd4407d.tar.gz
chat-b46320a08939b64b0611404233d0f9b53dd4407d.tar.bz2
chat-b46320a08939b64b0611404233d0f9b53dd4407d.zip
PLT-6692 Removed wbr tags from single line markdown (#6539)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/utils/text_formatting.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/utils/text_formatting.jsx b/webapp/utils/text_formatting.jsx
index c2c71a4e1..ed251bcb4 100644
--- a/webapp/utils/text_formatting.jsx
+++ b/webapp/utils/text_formatting.jsx
@@ -52,7 +52,10 @@ export function formatText(text, inputOptions) {
output = replaceNewlines(output);
}
- output = insertLongLinkWbr(output);
+ // Add <wbr /> tags to recommend line breaking on slashes within URLs
+ if (!options.singleline) {
+ output = insertLongLinkWbr(output);
+ }
return output;
}