Skip to content

Commit

Permalink
Merge pull request #17 from daxianyu/master
Browse files Browse the repository at this point in the history
remove unwanted wrap after break tag
  • Loading branch information
jpuri committed Jul 22, 2017
2 parents 4efffd8 + 794b809 commit 41b7b7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function getSectionText(text: Array<string>): string {
const chars = text.map((ch) => {
switch (ch) {
case '\n':
return '<br>\n';
return '<br>';
case '&':
return '&amp;';
case '<':
Expand Down
2 changes: 1 addition & 1 deletion lib/draftjs-to-html.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 41b7b7d

Please sign in to comment.