Skip to content

Commit

Permalink
Text files with newlines now get read properly
Browse files Browse the repository at this point in the history
  • Loading branch information
PaciStardust committed Dec 19, 2022
1 parent 358965a commit 7b7fdfe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions OscMultitool/Services/Speech/TextProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ private string ReplaceMessage(string message)
{
try
{
return File.ReadAllText(filePath);
} catch (Exception e)
return string.Join(" ", File.ReadAllLines(filePath));
}
catch (Exception e)
{
Logger.Error(e, "Failed to read provided file, is the path correct and does Hoscy have access?");
return string.Empty;
Expand Down

0 comments on commit 7b7fdfe

Please sign in to comment.