How to Preserve Line Breaks in the Street Field (Entra ID)

Short answer:
If your Street field in Entra ID contains multiple lines, you can preserve line breaks in your email signature by adding white-space: pre-line; to the field in your HTML template.

When is this needed?

This applies when your Street field in Entra ID contains multiple lines (e.g., street name and building details on separate lines), but appears as a single line in the email signature.

Step 1: Update your signature template

Wrap the ((Street)) field in an element that preserves line breaks:

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

Step 2: Save and test

  1. Save your signature template.
  2. Preview the signature for an employee with a multi-line address.
  3. Confirm that each line appears correctly in the signature.

Example

Entra ID Street value:

Millennium Court,
First Avenue

Displayed in the signature:

Millennium Court,
First Avenue

Explanation

Entra ID stores line breaks using carriage return/line feed (CR/LF). By default, HTML ignores these line breaks.

The CSS property white-space: pre-line; ensures that line breaks are respected and displayed correctly in the email signature.

Why this approach works well

  • No need to create additional fields
  • Works automatically with existing Entra ID data
  • Keeps your data structure simple and maintainable

Troubleshooting

The address still shows on one line

  • Check that the address in Entra ID includes actual line breaks (not just commas)
  • Confirm that white-space: pre-line; is correctly added to the field
  • Preview using a user with a verified multi-line value

Next steps

Want more control over formatting? See guides 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