summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-02 02:30:42 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-02 02:30:42 +0200
commitabae36bf850424845838ba784b40b2c609766391 (patch)
treecea995147b093a763291a6c770793c51f189d4e7
parent9ac89120d1c8a299b5f7afb6b6039f34b257b1f2 (diff)
Stop reporting line-ending differences as edits
-rw-r--r--lib/html_word_diff.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/html_word_diff.rb b/lib/html_word_diff.rb
index aa0cb866..41556eb0 100644
--- a/lib/html_word_diff.rb
+++ b/lib/html_word_diff.rb
@@ -49,7 +49,7 @@ module HtmlWordDiff
49 end 49 end
50 50
51 def self.tokenize(html) 51 def self.tokenize(html)
52 html.to_s.scan(TOKEN_REGEXP) 52 html.to_s.gsub(/\r\n?/, "\n").scan(TOKEN_REGEXP)
53 end 53 end
54 54
55 def self.tag_token?(token) 55 def self.tag_token?(token)