Skip to content

Commit

Permalink
Fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki committed Jan 17, 2024
1 parent a825c06 commit 545f1b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/juce_python/scripting/ScriptEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ juce::Result ScriptEngine::runScript (const juce::String& code, py::dict locals,
{
currentScriptCode = code;
if (! currentScriptCode.startsWith (juce::newLine))
currentScriptCode = static_cast<juce::String> (juce::newLine) + currentScriptCode;
currentScriptCode = juce::newLine + currentScriptCode;

currentScriptFile = juce::File();

Expand All @@ -115,7 +115,7 @@ juce::Result ScriptEngine::runScript (const juce::File& script, py::dict locals,

currentScriptCode = is->readEntireStreamAsString();
if (! currentScriptCode.startsWith (juce::newLine))
currentScriptCode = static_cast<juce::String> (juce::newLine) + currentScriptCode;
currentScriptCode = juce::newLine + currentScriptCode;

currentScriptFile = script;
}
Expand Down

0 comments on commit 545f1b4

Please sign in to comment.