From c2116ac07e80765c805b49eff8f0ee65009a4b70 Mon Sep 17 00:00:00 2001 From: trevorade Date: Thu, 17 Aug 2017 13:59:35 -0600 Subject: [PATCH] Fix unnecessary mat-tooltip message whitespace This specifically addresses: https://github.com/angular/material2/issues/3389#issuecomment-315534624 We ran into this just now. We need a multi-line tooltip but using the suggested workaround results in "\n " being displayed before the text. --- src/lib/tooltip/tooltip.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/tooltip/tooltip.html b/src/lib/tooltip/tooltip.html index 0b1a085e4f5a..1da0d330d3ea 100644 --- a/src/lib/tooltip/tooltip.html +++ b/src/lib/tooltip/tooltip.html @@ -2,6 +2,4 @@ [ngClass]="tooltipClass" [style.transform-origin]="_transformOrigin" [@state]="_visibility" - (@state.done)="_afterVisibilityAnimation($event)"> - {{message}} - \ No newline at end of file + (@state.done)="_afterVisibilityAnimation($event)">{{message}}