diff options
author | Dessalines <tyhou13@gmx.com> | 2019-10-16 21:30:32 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-10-16 21:30:32 -0700 |
commit | 97dc72232038fd4c6b14928f81e0e5e9d197e451 (patch) | |
tree | 6dd8ceee67667db446e5ac257cac6ed2b7c058c2 /ui | |
parent | b65f5528bd84b1bec287c80c3313682f24fd9dac (diff) | |
parent | 344ba4dfaef541a48f459d6fd92f417a128d1190 (diff) |
Merge branch 'dev'
Diffstat (limited to 'ui')
-rw-r--r-- | ui/src/components/comment-node.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/post-listing.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index 2cb55602..ce4bb510 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -112,7 +112,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> { {this.state.showEdit && <CommentForm node={node} edit onReplyCancel={this.handleReplyCancel} disabled={this.props.locked} />} {!this.state.showEdit && !this.state.collapsed && <div> - {this.state.viewSource ? <div>{this.commentUnlessRemoved}</div> : + {this.state.viewSource ? <pre>{this.commentUnlessRemoved}</pre> : <div className="md-div" dangerouslySetInnerHTML={mdToHtml(this.commentUnlessRemoved)} /> } <ul class="list-inline mb-1 text-muted small font-weight-bold"> diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index 9db7cf4b..4468d188 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -309,7 +309,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> { } {this.props.showBody && post.body && <> - {this.state.viewSource ? <div>{post.body}</div> : + {this.state.viewSource ? <pre>{post.body}</pre> : <div className="md-div" dangerouslySetInnerHTML={mdToHtml(post.body)} /> } </> |