Comments (4)
update, I am also seeing the same bug with plain text diff output, try this in a irb session http://pastie.org/3492706
from diffy.
I think I've got this fixed in 0fa41f3. Thanks for bringing it up, let me know if it works for you.
I'll probably release a new version of the gem in the next few days. I'll try to get your feature request in there as well.
from diffy.
I think it's behaving correctly with plaintext. Ruby treats here docs as double quoted strings so that is a real newline in your s1. If you escape the backslash (i.e. \\n
) you should get your desired behavior.
from diffy.
This fix should be in gem version 2.0.6. Thanks for reporting it.
from diffy.
Related Issues (20)
- Does the Diffy gem have the capability to ignore certain nodes/elements when comparing two XML documents?
- Showing "..." instead of simply skipping lines with context
- Allow me to ignore CRLF differences as an option HOT 3
- RE: https://github.com/samg/diffy/pull/106 HOT 1
- :source => 'file' and missing files
- HTML output ignoring new line diff? HOT 1
- No whitespace on the diff
- Diffs with literal \n cause extra line breaks in diff HOT 2
- windows11 diff not found HOT 2
- Security Policy HOT 3
- NameError: "uninitialized constant Diffy::Diff::Open3" on Windows
- Reproducible Builds fails on Debian due to locale LC_ALL = es_ES.UTF-8 LANGUAGE = es_ES.UTF-8:fr HOT 1
- [Feature request] Option to perform diff without tempfiles HOT 1
- diffy is incompatible with alpine linux/busybox linux diff HOT 7
- Ignore 'No newline at end of file' warning message when comparing text strings HOT 4
- Store as diff, display as HTML HOT 1
- :include-diff-info => false may cause some non-diff-info lines to be omitted HOT 1
- Diffy doesn't work on docker ruby Alpine Linux image HOT 2
- to_s(:html) mishandles \\n (backslash + en)
- Please v3.2.1 tagging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diffy.