diff --git a/src/main.cpp b/src/main.cpp index 66749d0..75f388a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,7 +58,7 @@ int main(int argc, char* argv[]) { unit_result resultingPair; try { resultingPair.first = Target::forName(target, newLines)->transpileWithTree( - parseString(text_provided ? currentArgument : getFileContent(file_path->string())) + parseString(text_provided ? string(currentArgument) + '\n' : getFileContent(file_path->string())) ); if (!text_provided or output_directory.has_value()) outputFileContent(