Commit bb18436a authored by yann300's avatar yann300

display double quotes for string

parent c3acccf8
...@@ -11,6 +11,9 @@ module.exports = { ...@@ -11,6 +11,9 @@ module.exports = {
function formatData (key, data) { function formatData (key, data) {
var style = fontColor(data) var style = fontColor(data)
var keyStyle = data.isProperty ? 'color:#847979' : '' var keyStyle = data.isProperty ? 'color:#847979' : ''
if (data.type === 'string') {
data.self = '"' + data.self + '"'
}
return yo`<label style=${keyStyle}>${key}: <label style=${style}>${data.self}</label><label style='font-style:italic'> ${data.isProperty ? '' : data.type}</label></label>` return yo`<label style=${keyStyle}>${key}: <label style=${style}>${data.self}</label><label style='font-style:italic'> ${data.isProperty ? '' : data.type}</label></label>`
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment