# Stop Postman from Removing Whitespace from PRS/Tests

**URL:** <https://community.postman.com/t/stop-postman-from-removing-whitespace-from-prs-tests/54520>\
**Category:** Help Hub\
**Tags:** tests, pre-request-script, postman-ui\
**Created:** [November 10, 2023, 8:49pm UTC](https://community.postman.com/t/stop-postman-from-removing-whitespace-from-prs-tests/54520 "2023-11-10T20:49:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uninfamousalec](https://avatars.discourse-cdn.com/v4/letter/u/58956e/32.png) [@uninfamousalec](https://community.postman.com/u/uninfamousalec)\
**Post date:** [November 10, 2023, 8:49pm UTC](https://community.postman.com/t/stop-postman-from-removing-whitespace-from-prs-tests/54520/1 "2023-11-10T20:49:11Z")

</div>

- **Descriptive Situation** : When writing code in the pre-script or test tabs, if you’re on a tabulated line click away to write something and come back, it removes all tabulation. This is extremely frustrating as I have to remove the line and create a new line to get the tabulation back.

- **Introduce The Question** : Please tell me how it’s possible to stop Postman from removing this whitespace? It doesn’t cover it in the settings anywhere as “Trim keys and values in request body” applies to the body only. This breaks my productivity/flow immensely!

- **Reproduction** :

1. On a request, open pre-request scripts or tests tab.
2. Create a new code block e.g.:

```auto
const fake = {
    |< CURSOR HERE
}

```

1. Click on any other line and type something.
2. Return to previous line and cursor will reset to the index of 0 e.g.:

```auto
const fake = {
|< CURSOR HERE
}

```

- **Platform Details** :  
Postman for Windows  
Version 10.20.0

- UI version  
10.20.0-ui-231018-1251

- Desktop platform version  
10.20.0

- Architecture  
x64

- OS platform  
win32 10.0.18362

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 22, 2023, 8:25pm UTC](https://community.postman.com/t/stop-postman-from-removing-whitespace-from-prs-tests/54520/2 "2023-11-22T20:25:01Z")

</div>

Hey @uninfamousalec 👋,

Could you include a short recording of the behaviour that you’re seeing please?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 22, 2023, 8:25pm UTC](https://community.postman.com/t/stop-postman-from-removing-whitespace-from-prs-tests/54520/3 "2023-12-22T20:25:12Z")

</div>

Closed on December 22, 2023, 8:25pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
