Correct ruby formatting of auto-generated output