Comparing version 3.0.2 to 3.0.3
@@ -55,5 +55,5 @@ var htmlStyles = { | ||
HtmlSerializer.prototype.block = function (content) { | ||
return '<div style="display: inline-block; vertical-align: top">' + | ||
this.serialize(content) + | ||
'</div>'; | ||
return '<div style="display: inline-block; vertical-align: top">\n' + | ||
this.serializeLines(content) + | ||
'\n</div>'; | ||
}; | ||
@@ -60,0 +60,0 @@ |
@@ -207,5 +207,5 @@ /*! | ||
HtmlSerializer.prototype.block = function (content) { | ||
return '<div style="display: inline-block; vertical-align: top">' + | ||
this.serialize(content) + | ||
'</div>'; | ||
return '<div style="display: inline-block; vertical-align: top">\n' + | ||
this.serializeLines(content) + | ||
'\n</div>'; | ||
}; | ||
@@ -212,0 +212,0 @@ |
{ | ||
"name": "magicpen", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Styled output in both consoles and browsers", | ||
@@ -5,0 +5,0 @@ "main": "./lib/MagicPen.js", |
@@ -623,11 +623,11 @@ /*global describe, it, beforeEach*/ | ||
'<div style="font-family: monospace; white-space: nowrap">\n' + | ||
' <div><div style="display: inline-block; vertical-align: top"><div style="font-family: monospace; white-space: nowrap">\n' + | ||
' <div><div style="display: inline-block; vertical-align: top">\n' + | ||
' <div> <span style="color: gray">//</span> </div>\n' + | ||
' <div> <span style="color: gray">//</span> </div>\n' + | ||
' <div> <span style="color: gray">//</span> </div>\n' + | ||
'</div></div><div style="display: inline-block; vertical-align: top"><div style="font-family: monospace; white-space: nowrap">\n' + | ||
'</div><div style="display: inline-block; vertical-align: top">\n' + | ||
' <div>First line</div>\n' + | ||
' <div>Second line</div>\n' + | ||
' <div> Third line</div>\n' + | ||
'</div></div></div>\n' + | ||
'</div></div>\n' + | ||
'</div>'); | ||
@@ -642,8 +642,9 @@ }); | ||
.gray(' // ').indent().text('multiline comment')); | ||
expect(pen.toString('html'), 'to equal', | ||
'<div style="font-family: monospace; white-space: nowrap">\n' + | ||
' <div><span style="color: red">Hello</span><div style="display: inline-block; vertical-align: top"><div style="font-family: monospace; white-space: nowrap">\n' + | ||
' <div><span style="color: red">Hello</span><div style="display: inline-block; vertical-align: top">\n' + | ||
' <div><span style="color: gray"> // </span>This is a</div>\n' + | ||
' <div><span style="color: gray"> // </span> multiline comment</div>\n' + | ||
'</div></div></div>\n' + | ||
'</div></div>\n' + | ||
'</div>'); | ||
@@ -650,0 +651,0 @@ }); |
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
462591