//
// IndentedTextWriterExtensions.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.CodeDom.Compiler;
namespace NosSmooth.PacketSerializersGenerator.Extensions;
///
/// Extension methods for .
///
public static class IndentedTextWriterExtensions
{
///
/// Append multiline text with correct indentation.
///
/// The text writer to write to.
/// The text to write.
public static void WriteMultiline(this IndentedTextWriter textWriter, string text)
{
foreach (var line in text.Split('\n'))
{
textWriter.WriteLine(line);
}
}
}