For the complete documentation index, see llms.txt. This page is also available as Markdown.

How To: Display Long URLs or Text Without Breaking Layout

Wrap long URLs or serial numbers without breaking the layout.

Use breakeverynchars when long unbroken strings overflow a cell or page.

Problem

Long unbroken strings like URLs, serial numbers, and hashes overflow table cells or fail to wrap.

Solution

Insert line-break opportunities:

{{!Opportunity.Long_URL__c breakeverynchars="50"}}

For related lists:

<column breakeverynchars="40">Long_Serial_Number__c</column>

Practical Examples

Product serial numbers:

<table>
<!--{{!
<lineitems>
<listname>opportunitylineitems</listname>
<column>PricebookEntry.Product2.name</column>
<column breakeverynchars="20">SerialNumber</column>
</lineitems>
}}-->
</table>

Long URLs:

Input: https://www.example.com/very/long/path/to/resource/that/needs/to/wrap Output: https://www.example.com/very/long/path/to/resource/that/n eeds/to/wrap

For PDF-Upload Templates

If you use PDF-Upload templates, add this to the Additional Style field:

This forces text to wrap at the inserted break points.

Tips

  • Choose the break interval based on column width.

  • Smaller values create more wrap points.

  • Too small can make text hard to read.

  • Test with real data before release.

  • This works with any text field.

Last updated

Was this helpful?