From bb18436a6a1748cbf9c942cd2ad25ae41e8c18ae Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 19 Jan 2017 17:22:06 +0100 Subject: [PATCH] display double quotes for string --- src/ui/SolidityTypeFormatter.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/SolidityTypeFormatter.js b/src/ui/SolidityTypeFormatter.js index 847bafa491..e8ae2a5a88 100644 --- a/src/ui/SolidityTypeFormatter.js +++ b/src/ui/SolidityTypeFormatter.js @@ -11,6 +11,9 @@ module.exports = { function formatData (key, data) { var style = fontColor(data) var keyStyle = data.isProperty ? 'color:#847979' : '' + if (data.type === 'string') { + data.self = '"' + data.self + '"' + } return yo`` }