From 4a14906272e0838a2e02dc2ace75df7604f48f34 Mon Sep 17 00:00:00 2001 From: Pankaj Tyagi Date: Tue, 1 Oct 2019 11:39:06 -0400 Subject: [PATCH] Update README.md Added documentation for `:ignore_crlf` option --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index e471fa7..c4438e2 100644 --- a/README.md +++ b/README.md @@ -277,6 +277,15 @@ combined with the `:context` option. foo bar +### `:ignore_crlf` when doing HTML compares + +You can make the HTML output ignore the CRLF by passing the `:ignore_crlf` option a truthy value. + + >> puts Diffy::Diff.new(" foo\nbar\n", "foo\r\nbar\r\n", ignore_crlf: true).to_s(:html) + "
" + + + Default Diff Options --------------------