diff --git a/package.json b/package.json index 70582e6..f45787a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@creately/carota", "author": "Daniel Earwicker (dan@earwicker.com)", "description": "Simple, flexible rich text rendering/editing on HTML Canvas", - "version": "1.3.7", + "version": "1.3.8", "repository": { "type": "git", "url": "https://github.com/danielearwicker/carota.git" diff --git a/src/html.js b/src/html.js index 8033378..8cd8d17 100644 --- a/src/html.js +++ b/src/html.js @@ -198,7 +198,7 @@ exports.html = function( texts ) { var span = document.createElement( 'span' ); Object.keys(obj).forEach(function(k, i) { if ( k === 'text' ) { - var brAdded = obj[ k ].replace(/\n/g, '
'); + var brAdded = obj[ k ].replace(/\n/g, '
'); span.innerHTML = brAdded; } if ( k === 'bold' ) {