use white-space:pre-wrap for spaces make effect

pull/5370/head
hp 5 years ago
parent a2b75e098e
commit e22bbdc43e
  1. 2
      src/app/tabs/debugger/debuggerUI/vmDebugger/utils/SolidityTypeFormatter.js

@ -12,7 +12,7 @@ function formatSelf (key, data) {
if (data.type === 'string') {
data.self = JSON.stringify(data.self)
}
return yo`<label style=${keyStyle}>${key}: <label style=${style}>${data.self}</label><label style='font-style:italic'> ${data.isProperty || !data.type ? '' : ' ' + data.type}</label></label>`
return yo `<label style='${keyStyle};white-space:pre-wrap;'> ${' ' + key}:<label style=${style}>${' ' + data.self}</label><label style='font-style:italic'> ${data.isProperty || !data.type ? '' : ' ' + data.type}</label></label>`
}
function extractData (item, parent, key) {

Loading…
Cancel
Save