Fix nested structure formatting
Merge pull request #434 from dlsniper/fix-255

Fix nested structure formatting (fixes #255)