@@ -10,6 +10,10 @@ internal class ConfigurationFileOptions
1010 public int ? IndentSize { get ; init ; }
1111 public bool UseTabs { get ; init ; }
1212
13+ [ JsonConverter ( typeof ( CaseInsensitiveEnumConverter < XmlWhitespaceSensitivity > ) ) ]
14+ public XmlWhitespaceSensitivity XmlWhitespaceSensitivity { get ; init ; } =
15+ XmlWhitespaceSensitivity . Strict ;
16+
1317 [ JsonConverter ( typeof ( CaseInsensitiveEnumConverter < EndOfLine > ) ) ]
1418 public EndOfLine EndOfLine { get ; init ; }
1519
@@ -38,6 +42,7 @@ out var parsedFormatter
3842 UseTabs = matchingOverride . UseTabs ,
3943 Width = matchingOverride . PrintWidth ,
4044 EndOfLine = matchingOverride . EndOfLine ,
45+ XmlWhitespaceSensitivity = matchingOverride . XmlWhitespaceSensitivity ,
4146 } ;
4247 }
4348
@@ -50,6 +55,7 @@ out var parsedFormatter
5055 UseTabs = this . UseTabs ,
5156 Width = this . PrintWidth ,
5257 EndOfLine = this . EndOfLine ,
58+ XmlWhitespaceSensitivity = this . XmlWhitespaceSensitivity ,
5359 } ;
5460 }
5561
@@ -73,6 +79,10 @@ internal class Override
7379 public int IndentSize { get ; init ; } = 4 ;
7480 public bool UseTabs { get ; init ; }
7581
82+ [ JsonConverter ( typeof ( CaseInsensitiveEnumConverter < XmlWhitespaceSensitivity > ) ) ]
83+ public XmlWhitespaceSensitivity XmlWhitespaceSensitivity { get ; init ; } =
84+ XmlWhitespaceSensitivity . Strict ;
85+
7686 [ JsonConverter ( typeof ( CaseInsensitiveEnumConverter < EndOfLine > ) ) ]
7787 public EndOfLine EndOfLine { get ; init ; }
7888
0 commit comments