summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/src/components/comment-node.tsx2
-rw-r--r--ui/src/components/post-listing.tsx2
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)} />
}
</>