diff --git a/src/Antyrama.Tools.Scribe.Core/Repository/ConfigurationRepository.cs b/src/Antyrama.Tools.Scribe.Core/Repository/ConfigurationRepository.cs index 021d2f6..5781ce8 100644 --- a/src/Antyrama.Tools.Scribe.Core/Repository/ConfigurationRepository.cs +++ b/src/Antyrama.Tools.Scribe.Core/Repository/ConfigurationRepository.cs @@ -15,11 +15,11 @@ internal interface IConfigurationRepository internal abstract class ConfigurationRepository : IConfigurationRepository { - private readonly string _eol; + protected readonly string Eol; protected ConfigurationRepository(ToolInternalOptions options) { - _eol = ResolveEndOfLine(options); + Eol = ResolveEndOfLine(options); } public abstract IReadOnlyDictionary[] Load(Stream stream); @@ -30,11 +30,11 @@ protected string Serialize(IEnumerable> sett { var serialized = settings.Select(setting => $" {JsonConvert.SerializeObject(setting)}"); - var separator = $",{_eol}"; + var separator = $",{Eol}"; var formatted = string.Join(separator, serialized) .BeautifyJson(); - return $"[{_eol}{formatted}{_eol}]"; + return $"[{Eol}{formatted}{Eol}]"; } protected static IReadOnlyDictionary[] Deserialize(string settings) diff --git a/src/Antyrama.Tools.Scribe.Core/Repository/YamlConfigurationRepository.cs b/src/Antyrama.Tools.Scribe.Core/Repository/YamlConfigurationRepository.cs index d3a2a11..0dc4dbb 100644 --- a/src/Antyrama.Tools.Scribe.Core/Repository/YamlConfigurationRepository.cs +++ b/src/Antyrama.Tools.Scribe.Core/Repository/YamlConfigurationRepository.cs @@ -56,8 +56,11 @@ public override void Save(Stream stream, IEnumerable