all tests passing

This commit is contained in:
2025-01-09 16:09:58 -05:00
parent 994f7d4a8d
commit 5d39f13c98
3 changed files with 114 additions and 150 deletions

View File

@@ -175,7 +175,7 @@ export class MarkdownGenerator {
const tokenCount = llama3Tokenizer.encode(cleanedAndRedactedContent).length;
console.log(`${filePath}: Tokens[${tokenCount}]`);
}
return cleanedAndRedactedContent;
return cleanedAndRedactedContent.trimEnd();
} catch (error) {
if (this.verbose) {
console.error(`Error reading file ${filePath}:`, error);
@@ -284,4 +284,4 @@ export class MarkdownGenerator {
throw error;
}
}
}
}