aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-watch/comment/video-comments.component.ts
diff options
context:
space:
mode:
authorkimsible <kimsible@users.noreply.github.com>2020-11-06 22:37:01 +0100
committerRigel Kent <par@rigelk.eu>2020-11-08 16:44:43 +0100
commit110d463fece85e87a26aca48a6048ae0017a27b3 (patch)
tree1d1b982a557d3ef52f065b4de12f9bc6969731e1 /client/src/app/+videos/+video-watch/comment/video-comments.component.ts
parentf34cc2a48e534c96598490e1d13e426f05b63d0f (diff)
downloadPeerTube-110d463fece85e87a26aca48a6048ae0017a27b3.tar.gz
PeerTube-110d463fece85e87a26aca48a6048ae0017a27b3.tar.zst
PeerTube-110d463fece85e87a26aca48a6048ae0017a27b3.zip
Restore line feed for markdown lists support in comments
Diffstat (limited to 'client/src/app/+videos/+video-watch/comment/video-comments.component.ts')
-rw-r--r--client/src/app/+videos/+video-watch/comment/video-comments.component.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/+videos/+video-watch/comment/video-comments.component.ts b/client/src/app/+videos/+video-watch/comment/video-comments.component.ts
index 602bd8050..a4c651da5 100644
--- a/client/src/app/+videos/+video-watch/comment/video-comments.component.ts
+++ b/client/src/app/+videos/+video-watch/comment/video-comments.component.ts
@@ -199,7 +199,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
199 if (confirm) { 199 if (confirm) {
200 this.inReplyToCommentId = commentToRedraft.inReplyToCommentId 200 this.inReplyToCommentId = commentToRedraft.inReplyToCommentId
201 201
202 // Display <br /> tag as a break line for editing 202 // Restore line feed for editing
203 const commentToRedraftText = commentToRedraft.text.replace(/<br.?\/?>/g, '\r\n') 203 const commentToRedraftText = commentToRedraft.text.replace(/<br.?\/?>/g, '\r\n')
204 204
205 if (commentToRedraft.threadId === commentToRedraft.id) { 205 if (commentToRedraft.threadId === commentToRedraft.id) {