When customers submit code using the web interface that includes whitespace, the whitespace is stripped by the time the request reaches our system, per normal html behavior. Is there a way to work around this?
Can I get the customer's website request form data to retain whitespace?
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Thanks for posting your question to the Community. That is definitely bothersome especially if you have your customer's submitting code snippets. The best way to retain whitespace in the request html is by adding the <pre> element wrapped around the entire html body. This would preserve the original formatting of the request (including whitespace). However, the only way to edit the ticket field html as such is by building your own custom ticket form. If you're not currently using a custom ticket form, you can see how to get started with building one [here](https://developer.zendesk.com/documentation/ticketing/managing-tickets/building-a-custom-ticket-form-with-the-zendesk-api/).
Hope this helps!
Best,
Erica - Dev Support