Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Keeping multiple spaces between words



Gepostet 28. März 2023

In the emails we send out using zendesk, we have content that require us to maintain the extra spaces between words.

e.g. "A B   C"

(3 spaces between B and C)

However, the content appears as "A B C" with 2 spaces between B and C removed.

How can we maintain the spaces?

I have tried using css "white-space:pre" and replacing spaces to   but they get rendered as text.


1

4

4 Kommentare

image avatar

Blanca

Zendesk Customer Care

Hi there, Erik! I tried to do it on my test account on Support platform, and I was able to retain the three spaces between the letters when I sent the e-mail. Can you provide a sample on how you did on your end and what steps were taken?


0


Hi Blanca
We use the Create Ticket API https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#create-ticket

After a ticket is created, an email is sent to the customer, in that email, the extra spaces were removed.

0


image avatar

Blanca

Zendesk Customer Care

Hi Erik, thank you for the clarification. If this is the case, I want to know more the payload you use that renders these extra spaces. I will create a new ticket 

0


image avatar

Carl McDowell

Zendesk Customer Care

We have the following note in this API reference regarding the ticket comment:
https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_comments/#bodies
 

If you use body, multiple consecutive spaces are collapsed into a single space and multiple consecutive newline ("\n") characters are collapsed into a single newline. To preserve your spacing, use alternating space and non-breaking space characters (you must use the Unicode \u00a0 and not  ). To preserve your line breaks, enter an extra space after "\n". For example, to generate three empty lines, use "\n \n \n".

Hopefully this method to preserve your spacing will be of assistance.

0


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post