Skip to content

Commit

Permalink
Merge pull request jquense#415 from joshkel/trim-sample-newlines
Browse files Browse the repository at this point in the history
Trim leading blank line from code examples
  • Loading branch information
jquense authored Jul 11, 2016
2 parents d92fe25 + 0fb8106 commit 7e0d4a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/components/EditableExample.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ var scope = {

module.exports = React.createClass({
render() {
let { codeText, ...props } = this.props;
return (
<Playground
{...this.props}
{...props}
codeText={codeText.trim()}
mode='jsx'
theme='oceanicnext'
scope={scope}
Expand Down

0 comments on commit 7e0d4a7

Please sign in to comment.