From 7443c39968e78a5a509743695db2fcd933ea11fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Thu, 27 Jun 2019 12:00:15 +0200
Subject: [PATCH] Trim text of room description and comments

---
 .../creator/room-creator-page/room-creator-page.component.html  | 2 +-
 .../room-participant-page/room-participant-page.component.html  | 2 +-
 src/app/components/shared/comment/comment.component.html        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/app/components/creator/room-creator-page/room-creator-page.component.html b/src/app/components/creator/room-creator-page/room-creator-page.component.html
index 2589c839d..8283f2948 100644
--- a/src/app/components/creator/room-creator-page/room-creator-page.component.html
+++ b/src/app/components/creator/room-creator-page/room-creator-page.component.html
@@ -22,7 +22,7 @@
       <mat-divider></mat-divider>
       <mat-card-content fxLayoutAlign="center">
         <h4>
-          {{ room.description }}
+          {{ room.description.trim() }}
         </h4>
       </mat-card-content>
       <mat-grid-list cols="1" rowHeight="2:1">
diff --git a/src/app/components/participant/room-participant-page/room-participant-page.component.html b/src/app/components/participant/room-participant-page/room-participant-page.component.html
index 7a9f59c21..dceb01557 100644
--- a/src/app/components/participant/room-participant-page/room-participant-page.component.html
+++ b/src/app/components/participant/room-participant-page/room-participant-page.component.html
@@ -12,7 +12,7 @@
       </mat-card-header>
       <mat-divider></mat-divider>
       <mat-card-content fxLayoutAlign="center">
-        <h4>{{room.description}}</h4>
+        <h4>{{room.description.trim()}}</h4>
       </mat-card-content>
       <mat-grid-list cols="1" rowHeight="2:1">
         <mat-grid-tile>
diff --git a/src/app/components/shared/comment/comment.component.html b/src/app/components/shared/comment/comment.component.html
index a915ff2f3..93a3b776f 100644
--- a/src/app/components/shared/comment/comment.component.html
+++ b/src/app/components/shared/comment/comment.component.html
@@ -26,7 +26,7 @@
       </button>
     </div>
     <div fxLayout="row">
-      <div class="body" (click)="openPresentDialog(comment)">{{comment.body}}</div>
+      <div class="body" (click)="openPresentDialog(comment)">{{comment.body.trim()}}</div>
       <span class="fill-remaining-space" (click)="openPresentDialog(comment)"></span>
       <div fxLayout="column" (tap)="startAnimation('rubberBand')" [@rubberBand]="animationState"
            (@rubberBand.done)="resetAnimationState()">
-- 
GitLab