mirror of
https://github.com/friebetill/obsidian-file-diff.git
synced 2026-07-22 07:40:25 +00:00
Reactivate ignoring line breaks at the end of the file
This commit is contained in:
parent
dd5a1fc2b8
commit
cc1ffac60b
1 changed files with 4 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue