Commits

Rob Lanphier  committed 3b4c46c

Formatting fix in yaml output when object has array child

  • Participants
  • Parent commits c4bab8a

Comments (0)

Files changed (1)

File jsonwidget/yamltools.py

             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'):