---
title: "Why is the rule block reformatted when saving in Gateway Setup Editor"
description: "The Gateway Setup Editor reformats rule blocks when saving because it converts the rules into XML, enforcing a standard formatting that removes user-defined spaces and white space. This formatting behavior is fixed and cannot be configured or disabled."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004029969-geneos-why-is-the-rule-block-reformatted-when-saving-in-gateway-setup-editor/index.html"
---
When you use the Gateway Setup Editor to update rule blocks, it allows you to format the rule in any way you want. I.E. you can add spaces, extra lines, brackets, and white space as you see fit. However, when saving the configuration it converts this rule into XML, and passes it to the gateway. The conversion to XML enforces a formatting standard, which means any user defined formatting which does not conform is removed.  This behavior is not configurable, so the formatting will always occur.

Here is a hard example, where the first screen shot shows user formatting (extra brackets, white space), and the same code after the save.  Geneos - Why is the rule block reformatted when saving in Gateway Setup Editor


