Skip to main content

Resolve line breaks in HTML invoice template

Zuora

Resolve line breaks in HTML invoice template

You can retain the original format of the text entered into any field of a Zuora business object using the following tags within the HTML templates:

  • <pre> - This tag retains the original text format.
  • style - This tag, when applied to the <pre> tag, enhances the rendering result.

The contents within the HTML Invoice template now incorporate the necessary line breaks, enhancing clarity and readability. To maintain the intended font style while enabling line breaks within merge fields, include the following code within the HTML tag:

<td "\style="" class="formatDescription"><pre></pre></td>

Additionally, to preserve the font style, include the following code:

pre { font-family: inherit; font-size: inherit; }

These adjustments significantly enhance the readability and clarity of invoices generated using the HTML template.