AST Custom Clause layout

Does anyone know how to change the layout of a custom clause added to the AST? I have text to paste in which has paragraph spacing, numbering etc. but this all gets removed in the rendered contract and the whole text is a single paragraph.
Thanks
Jim