diff --git a/JL.Core/Dicts/CustomWordDict/CustomWordRecord.cs b/JL.Core/Dicts/CustomWordDict/CustomWordRecord.cs index 50e0694a..7480aee9 100644 --- a/JL.Core/Dicts/CustomWordDict/CustomWordRecord.cs +++ b/JL.Core/Dicts/CustomWordDict/CustomWordRecord.cs @@ -55,9 +55,9 @@ public string BuildFormattedDefinition(DictOptions options) StringBuilder defResult = new(); - string separator = newlines - ? "\n" - : "; "; + char separator = newlines + ? '\n' + : ';'; for (int i = 0; i < Definitions.Length; i++) { diff --git a/JL.Core/Dicts/EPWING/Nazeka/EpwingNazekaRecord.cs b/JL.Core/Dicts/EPWING/Nazeka/EpwingNazekaRecord.cs index 2a043776..a71c850b 100644 --- a/JL.Core/Dicts/EPWING/Nazeka/EpwingNazekaRecord.cs +++ b/JL.Core/Dicts/EPWING/Nazeka/EpwingNazekaRecord.cs @@ -28,9 +28,9 @@ public string BuildFormattedDefinition(DictOptions options) return Definitions[0]; } - string separator = options is { NewlineBetweenDefinitions.Value: false } - ? "; " - : "\n"; + char separator = options is { NewlineBetweenDefinitions.Value: false } + ? ';' + : '\n'; StringBuilder defResult = new(); for (int i = 0; i < Definitions.Length; i++) diff --git a/JL.Core/Dicts/EPWING/Yomichan/EpwingYomichanRecord.cs b/JL.Core/Dicts/EPWING/Yomichan/EpwingYomichanRecord.cs index 2673a401..0c9fce4c 100644 --- a/JL.Core/Dicts/EPWING/Yomichan/EpwingYomichanRecord.cs +++ b/JL.Core/Dicts/EPWING/Yomichan/EpwingYomichanRecord.cs @@ -37,9 +37,9 @@ public string BuildFormattedDefinition(DictOptions options) } bool newlines = options.NewlineBetweenDefinitions!.Value; - string separator = newlines - ? "\n" - : "; "; + char separator = newlines + ? '\n' + : ';'; StringBuilder defResult = new(); for (int i = 0; i < Definitions.Length; i++) diff --git a/JL.Core/Dicts/JMdict/JmdictRecord.cs b/JL.Core/Dicts/JMdict/JmdictRecord.cs index a1540bf1..6973fae1 100644 --- a/JL.Core/Dicts/JMdict/JmdictRecord.cs +++ b/JL.Core/Dicts/JMdict/JmdictRecord.cs @@ -71,7 +71,7 @@ public string BuildFormattedDefinition(DictOptions options) { bool newlines = options.NewlineBetweenDefinitions!.Value; - string separator = newlines ? "\n" : "; "; + char separator = newlines ? '\n' : ';'; StringBuilder defResult = new(); @@ -230,7 +230,7 @@ public string BuildFormattedDefinition(DictOptions options) if (i + 1 != Definitions.Length) { - _ = defResult.Replace(" ", separator, defResult.Length - 1, 1); + _ = defResult.Replace(' ', separator, defResult.Length - 1, 1); } } diff --git a/JL.Core/Dicts/JMnedict/JmnedictRecord.cs b/JL.Core/Dicts/JMnedict/JmnedictRecord.cs index e8f7bd0c..42c524fd 100644 --- a/JL.Core/Dicts/JMnedict/JmnedictRecord.cs +++ b/JL.Core/Dicts/JMnedict/JmnedictRecord.cs @@ -37,9 +37,9 @@ public string BuildFormattedDefinition(DictOptions options) bool newlines = options.NewlineBetweenDefinitions!.Value; - string separator = newlines - ? "\n" - : "; "; + char separator = newlines + ? '\n' + : ';'; StringBuilder defResult = new(); for (int i = 0; i < Definitions.Length; i++) diff --git a/JL.Core/Dicts/KanjiDict/YomichanKanjiRecord.cs b/JL.Core/Dicts/KanjiDict/YomichanKanjiRecord.cs index 5f68ac9c..86429db1 100644 --- a/JL.Core/Dicts/KanjiDict/YomichanKanjiRecord.cs +++ b/JL.Core/Dicts/KanjiDict/YomichanKanjiRecord.cs @@ -88,9 +88,9 @@ public YomichanKanjiRecord(List jsonElement) } StringBuilder defResult = new(); - string separator = options.NewlineBetweenDefinitions!.Value - ? "\n" - : "; "; + char separator = options.NewlineBetweenDefinitions!.Value + ? '\n' + : ';'; for (int i = 0; i < Definitions.Length; i++) {