summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
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;
}