Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added documentation for `:ignore_crlf` option
  • Loading branch information
ptyagi16 committed Oct 1, 2019
1 parent 6c4650b commit 4a14906
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -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)
"<div class=\"diff\"></div>"



Default Diff Options
--------------------

Expand Down

0 comments on commit 4a14906

Please sign in to comment.