main.cpp: Add a newline to code that is given by the "--text" argument

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2023-08-08 03:14:45 +02:00
parent ddaf3a44d1
commit a8d1e6b09a
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ int main(int argc, char* argv[]) {
unit_result resultingPair; unit_result resultingPair;
try { try {
resultingPair.first = Target::forName(target, newLines)->transpileWithTree( 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()) if (!text_provided or output_directory.has_value())
outputFileContent( outputFileContent(