1. Rob Lanphier
  2. jsonwidget-python

Commits

Rob Lanphier  committed 3b4c46c

Formatting fix in yaml output when object has array child

Comments (0)

Files changed (1)

File jsonwidget/yamltools.py Modified

View file
  • Ignore whitespace
  • Hide word diff
             enckey = re.sub(r'[\r\n]+$', '', enckey)
             retval += enckey
             retval += ": "
-            if jsonnode.is_type('object'):
+            if jsonnode.is_type('object') or jsonnode.is_type('array'):
                 retval += "\n"
 
     if jsonnode.is_type('object') or jsonnode.is_type('array'):