Comparing version 5.9.3 to 5.10.0
@@ -12,3 +12,3 @@ var cssStyles = require('./cssStyles'); | ||
HtmlSerializer.prototype.serialize = function (lines) { | ||
return '<div style="font-family: monospace; white-space: nowrap">\n' + this.serializeLines(lines) + '\n</div>'; | ||
return '<div style="font-family: monospace; white-space: nowrap">' + this.serializeLines(lines) + '</div>'; | ||
}; | ||
@@ -18,4 +18,4 @@ | ||
return lines.map(function (line) { | ||
return ' <div>' + (this.serializeLine(line).join('') || ' ') + '</div>'; | ||
}, this).join('\n'); | ||
return '<div>' + (this.serializeLine(line).join('') || ' ') + '</div>'; | ||
}, this).join(''); | ||
}; | ||
@@ -32,5 +32,5 @@ | ||
HtmlSerializer.prototype.block = function (content) { | ||
return '<div style="display: inline-block; vertical-align: top">\n' + | ||
return '<div style="display: inline-block; vertical-align: top">' + | ||
this.serializeLines(content) + | ||
'\n</div>'; | ||
'</div>'; | ||
}; | ||
@@ -37,0 +37,0 @@ |
@@ -270,3 +270,3 @@ /*! | ||
HtmlSerializer.prototype.serialize = function (lines) { | ||
return '<div style="font-family: monospace; white-space: nowrap">\n' + this.serializeLines(lines) + '\n</div>'; | ||
return '<div style="font-family: monospace; white-space: nowrap">' + this.serializeLines(lines) + '</div>'; | ||
}; | ||
@@ -276,4 +276,4 @@ | ||
return lines.map(function (line) { | ||
return ' <div>' + (this.serializeLine(line).join('') || ' ') + '</div>'; | ||
}, this).join('\n'); | ||
return '<div>' + (this.serializeLine(line).join('') || ' ') + '</div>'; | ||
}, this).join(''); | ||
}; | ||
@@ -290,5 +290,5 @@ | ||
HtmlSerializer.prototype.block = function (content) { | ||
return '<div style="display: inline-block; vertical-align: top">\n' + | ||
return '<div style="display: inline-block; vertical-align: top">' + | ||
this.serializeLines(content) + | ||
'\n</div>'; | ||
'</div>'; | ||
}; | ||
@@ -295,0 +295,0 @@ |
{ | ||
"name": "magicpen", | ||
"version": "5.9.3", | ||
"version": "5.10.0", | ||
"description": "Styled output in both consoles and browsers", | ||
@@ -5,0 +5,0 @@ "main": "./lib/MagicPen.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
579467