HTML Pro: How to Split a Two-Line Street Value in Your HTML Signature Template

If your Street field in Entra ID contains multiple lines, you can display it correctly in your email signature without creating a separate field. This guide explains how to preserve line breaks directly in your HTML template.


How It Works

When users enter multiple lines in the Street field in Entra ID, the value typically includes a line break (CR/LF). By default, HTML ignores line breaks unless instructed otherwise.

You can configure your template to respect those line breaks using CSS.


Preserve Line Breaks with CSS

Wrap the ((Street)) field in an element that supports line breaks using the white-space: pre-line; CSS property.

Update Your Signature Template

<span style="white-space: pre-line;">((Street))</span>

This ensures that any line breaks stored in Entra ID are displayed correctly in the email signature.


Example

Entra ID Street Value with CR/LF after the comma:

Millennium Court,First Avenue

Displayed in the signature:

Millennium Court,
First Avenue


Why This Is Recommended

  • No need to create and maintain additional fields
  • Works automatically with multi-line addresses
  • Keeps your Entra ID structure clean and simple

Troubleshooting

The address still shows as one line

  • Verify that the address in Entra ID actually contains a real line break (not just commas).
  • Ensure the template includes white-space: pre-line;.

Next Steps

Want to improve address formatting even further? See our related guide on customizing dynamic fields in email signature templates.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
Quick 1-on-1 Demo | Ⓒ 2026 Xink