Any additional click on "Reformat File" should produce the same result as the first click on it.
Current Behavior
Each click on context menu entry "Reformat File" inserts new empty lines between each existing line, stretching the whole code with empty lines.
Eyample: Starting point is the following code (.sitemap)
sitemap default label="My first sitemap"
{
// Syntax:
// ElementType item=ItemName label="Description of the item shown on the webpage"
Frame label="Testing"{
Switch item=Presence_Brother_PT_P750W label="Description of the item shown on the webpage, here P750W"
Default item=Chromecast_XE8005_Control icon=screen label="XE8005 Control"
}
Frame label="Working" {
Slider item=Chromecast_XE8005_Volume icon=soundvolume label="XE8005 Volume"
}
}
Second click on "Reformat File" produces the following output:
sitemap default label="My first sitemap"
{
// Syntax:
// ElementType item=ItemName label="Description of the item shown on the webpage"
Frame label="Testing"{
Switch item=Presence_Brother_PT_P750W label="Description of the item shown on the webpage, here P750W"
Default item=Chromecast_XE8005_Control icon=screen label="XE8005 Control"
}
Frame label="Working" {
Slider item=Chromecast_XE8005_Volume icon=soundvolume label="XE8005 Volume"
}
}
Third run produces:
sitemap default label="My first sitemap"
{
// Syntax:
// ElementType item=ItemName label="Description of the item shown on the webpage"
Frame label="Testing"{
Switch item=Presence_Brother_PT_P750W label="Description of the item shown on the webpage, here P750W"
Default item=Chromecast_XE8005_Control icon=screen label="XE8005 Control"
}
Frame label="Working" {
Slider item=Chromecast_XE8005_Volume icon=soundvolume label="XE8005 Volume"
}
}
And so on...
Possible Solution
Steps to Reproduce (for Bugs)
Right Click -> Reformat File
Right Click -> Reformat File (again)
...
N. Right Click -> Reformat File (again)
Expected Behavior
Any additional click on "Reformat File" should produce the same result as the first click on it.
Current Behavior
Each click on context menu entry "Reformat File" inserts new empty lines between each existing line, stretching the whole code with empty lines.
Eyample: Starting point is the following code (.sitemap)
Second click on "Reformat File" produces the following output:
Third run produces:
And so on...
Possible Solution
Steps to Reproduce (for Bugs)
Context
Your Environment