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:
parent
ddaf3a44d1
commit
a8d1e6b09a
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue