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
- Save your signature template.
- Preview the signature for an employee with a multi-line address.
- 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.
