XamlStyler
XamlStyler copied to clipboard
Extra blank lines being added to ResourceDictionary xaml
Extry time I format my ResourceDictionary xaml, every time there is a blank line between two keys, and extra blank line gets added.
I have the following in my xaml file
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xml:space="preserve">
<!-- 1 -->
<system:String x:Key="Language.SingleLine.1_hour">1 hour</system:String>
<!-- 2 -->
<system:String x:Key="Language.SingleLine.3_hour">3 hour</system:String>
</ResourceDictionary>
When i format it turns into
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xml:space="preserve">
<!-- 1 -->
<system:String x:Key="Language.SingleLine.1_hour">1 hour</system:String>
<!-- 2 -->
<system:String x:Key="Language.SingleLine.3_hour">3 hour</system:String>
</ResourceDictionary>
Note extra blank lines added, it does not seem to do this in other xaml files, just the resource file.
Version Info (please complete the following information):
- OS: [e.g. Windows 10 (19043)
- Visual Studio: [e.g., VS2017 (15.9.43)
- XAML Styler: , Extension (3.2008.4)