display double quotes for string

pull/7/head
yann300 8 years ago
parent c3acccf892
commit bb18436a6a
  1. 3
      src/ui/SolidityTypeFormatter.js

@ -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>`
} }

Loading…
Cancel
Save