Skip to content

Commit

Permalink
trim leading and trailing whitespace from Talk comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed May 31, 2024
1 parent 95e6670 commit 2039229
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/wrapped-markdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class WrappedMarkdown extends React.Component {
<div onClick={this.onClick}>
<Markdown
relNofollow
content={this.props.content}
content={this.props.content.trim()}
project={this.props.project}
header={this.props.header}
/>
Expand Down
2 changes: 1 addition & 1 deletion app/talk/comment-preview.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ module.exports = createReactClass
render: ->
<div className='talk-comment-preview'>
<h1>{@props.header}</h1>
<Markdown className='talk-comment-preview-content' content={@props.content} />
<Markdown className='talk-comment-preview-content' content={@props.content.trim()} />
</div>

0 comments on commit 2039229

Please sign in to comment.