Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
decorated_channel_name: Squash whitespaces in Handlebars template.
Sayam Samaldb2d4b38c671
diff --git a/web/templates/decorated_channel_name.hbs b/web/templates/decorated_channel_name.hbsindex 3800d1ee415..2a135c9ded5 100644--- a/web/templates/decorated_channel_name.hbs+++ b/web/templates/decorated_channel_name.hbs@@ -1,7 +1,9 @@<span class="decorated-channel-name-wrapper{{#if inline_with_text}} inline-decorated-channel-name{{/if}}">+ {{~!-- squash whitespace --~}}<span class="channel-privacy-type-icon{{#if show_colored_icon}} stream-privacy-original-color-{{stream.stream_id}}{{/if}}"{{#if show_colored_icon}} style="color: {{stream.color}}"{{/if}}>{{~> stream_privacy stream ~}}</span>{{~!-- squash whitespace --~}}<span class="decorated-channel-name">{{stream.name}}</span>+ {{~!-- squash whitespace --~}}</span>diff --git a/web/tests/stream_pill.test.cjs b/web/tests/stream_pill.test.cjsindex 08a32d0e7ee..fe58041b3b0 100644--- a/web/tests/stream_pill.test.cjs+++ b/web/tests/stream_pill.test.cjs@@ -154,9 +154,7 @@ run_test("generate_pill_html", () => {"<div class='pill 'data-stream-id=\"101\" tabindex=0>\n" +' <span class="pill-label">\n' +' <span class="pill-value">\n' +- ' <span class="decorated-channel-name-wrapper">\n' +- ' <span class="channel-privacy-type-icon"><i class="zulip-icon zulip-icon-hashtag" aria-hidden="true"></i></span><span class="decorated-channel-name">Denmark</span>\n' +- "</span>\n" ++ ' <span class="decorated-channel-name-wrapper"><span class="channel-privacy-type-icon"><i class="zulip-icon zulip-icon-hashtag" aria-hidden="true"></i></span><span class="decorated-channel-name">Denmark</span></span>\n' +" </span></span>\n" +' <div class="exit">\n' +' <a role="button" class="zulip-icon zulip-icon-close pill-close-button"></a>\n' +