mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-05 22:01:33 +00:00
Use original XML writer settings
This commit is contained in:
@@ -18,8 +18,14 @@ namespace SabreTools.Serialization.Writers
|
||||
|
||||
// Setup the writer and output
|
||||
var stream = new MemoryStream();
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8)
|
||||
{
|
||||
Formatting = Formatting.Indented,
|
||||
IndentChar = '\t',
|
||||
Indentation = 1
|
||||
};
|
||||
writer.Settings?.CheckCharacters = false;
|
||||
writer.Settings?.NewLineChars = "\n";
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
@@ -18,8 +18,14 @@ namespace SabreTools.Serialization.Writers
|
||||
|
||||
// Setup the writer and output
|
||||
var stream = new MemoryStream();
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8)
|
||||
{
|
||||
Formatting = Formatting.Indented,
|
||||
IndentChar = '\t',
|
||||
Indentation = 1
|
||||
};
|
||||
writer.Settings?.CheckCharacters = false;
|
||||
writer.Settings?.NewLineChars = "\n";
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
@@ -52,8 +52,14 @@ namespace SabreTools.Serialization.Writers
|
||||
|
||||
// Setup the writer and output
|
||||
var stream = new MemoryStream();
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8)
|
||||
{
|
||||
Formatting = Formatting.Indented,
|
||||
IndentChar = '\t',
|
||||
Indentation = 1
|
||||
};
|
||||
writer.Settings?.CheckCharacters = false;
|
||||
writer.Settings?.NewLineChars = "\n";
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
@@ -18,8 +18,14 @@ namespace SabreTools.Serialization.Writers
|
||||
|
||||
// Setup the writer and output
|
||||
var stream = new MemoryStream();
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8)
|
||||
{
|
||||
Formatting = Formatting.Indented,
|
||||
IndentChar = '\t',
|
||||
Indentation = 1
|
||||
};
|
||||
writer.Settings?.CheckCharacters = false;
|
||||
writer.Settings?.NewLineChars = "\n";
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
@@ -18,8 +18,14 @@ namespace SabreTools.Serialization.Writers
|
||||
|
||||
// Setup the writer and output
|
||||
var stream = new MemoryStream();
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8)
|
||||
{
|
||||
Formatting = Formatting.Indented,
|
||||
IndentChar = '\t',
|
||||
Indentation = 1
|
||||
};
|
||||
writer.Settings?.CheckCharacters = false;
|
||||
writer.Settings?.NewLineChars = "\n";
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
@@ -18,8 +18,14 @@ namespace SabreTools.Serialization.Writers
|
||||
|
||||
// Setup the writer and output
|
||||
var stream = new MemoryStream();
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8)
|
||||
{
|
||||
Formatting = Formatting.Indented,
|
||||
IndentChar = '\t',
|
||||
Indentation = 1
|
||||
};
|
||||
writer.Settings?.CheckCharacters = false;
|
||||
writer.Settings?.NewLineChars = "\n";
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
@@ -42,8 +42,14 @@ namespace SabreTools.Serialization.Writers
|
||||
|
||||
// Setup the writer and output
|
||||
var stream = new MemoryStream();
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8)
|
||||
{
|
||||
Formatting = Formatting.Indented,
|
||||
IndentChar = '\t',
|
||||
Indentation = 1
|
||||
};
|
||||
writer.Settings?.CheckCharacters = false;
|
||||
writer.Settings?.NewLineChars = "\n";
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
@@ -42,8 +42,14 @@ namespace SabreTools.Serialization.Writers
|
||||
|
||||
// Setup the writer and output
|
||||
var stream = new MemoryStream();
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
writer.Formatting = Formatting.Indented;
|
||||
var writer = new XmlTextWriter(stream, Encoding.UTF8)
|
||||
{
|
||||
Formatting = Formatting.Indented,
|
||||
IndentChar = '\t',
|
||||
Indentation = 1
|
||||
};
|
||||
writer.Settings?.CheckCharacters = false;
|
||||
writer.Settings?.NewLineChars = "\n";
|
||||
|
||||
// Write document start
|
||||
writer.WriteStartDocument();
|
||||
|
||||
Reference in New Issue
Block a user