Execution formatter unescaping should be done before safe_dump
@@ -41,7 +41,7 @@ class ExecutionResult(formatters.Formatter):
entry = vars(entry)
output = ''
for attr in attrs:
- value = jsutil.get_value(entry, attr)
+ value = strutil.unescape(jsutil.get_value(entry, attr))
if (isinstance(value, basestring) and len(value) > 0 and
value[0] in ['{', '['] and value[len(value) - 1] in ['}', ']']):
new_value = ast.literal_eval(value)
@@ -60,4 +60,4 @@ class ExecutionResult(formatters.Formatter):
value = ('\n' if isinstance(value, dict) else '') + formatted_value
output += ('\n' if output else '') + '%s: %s' % \
(DisplayColors.colorize(attr, DisplayColors.BLUE), value)
- return strutil.unescape(output)
+ return output
