diff --git a/src/components/differences_view.ts b/src/components/differences_view.ts index adaf188..37270f8 100644 --- a/src/components/differences_view.ts +++ b/src/components/differences_view.ts @@ -71,10 +71,14 @@ export class DifferencesView extends ItemView { this.file2Content = await this.app.vault.read(this.file2) this.file1Lines = this.file1Content + // Remove trailing new lines as this removes edge cases + .trimEnd() .split('\n') // Streamline empty lines at the end as this remove edge cases .map((line) => line.trimEnd()) this.file2Lines = this.file2Content + // Remove trailing new lines as this removes edge cases + .trimEnd() .split('\n') // Streamline empty lines at the end as this remove edge cases .map((line) => line.trimEnd())