Comments (3)
Hi!
The missing No newline...
is a known deviation of the udiff
format. The StrictUnifiedDiffOutputBuilder
was developed and added as alternative such that people who like the output to be the same as udiff
can use it. So if you want strict udiff
, with the No newline...
output I would suggest using the strict -builder, unless maybe I'm not sure what you question/suggestion is here.
from diff.
Hi,
Honestly, I think this deviation is not known by most of developers. As far as I remember, this missing No newline
was causing issues with usage of the patch
utility. Indeed, I was not able to apply a reverse patch generated this way.
Anyway, I found a solution to this, so I will close this issue as it seems that this behaviour looks correct to you.
Thanks
from diff.
I agree it is not widely known to developers and I think in some respects it might be better for the diff
package on its own that the default would be the strict-format output builder. However, given the package history and BC promise, it might difficult or more of problem than it would solve.
Just a friendly reminder that I'm just someone saying things, I'm not not a member or anything so you could always make your case to the maintainer :) Thanks!
from diff.
Related Issues (20)
- Remove backward compatibility workaround for old PHPUnit versions HOT 2
- [Feature] Percent change HOT 5
- PHP 8 support HOT 1
- Tools directory in production package versions HOT 1
- Numeric array values not supported HOT 3
- Ability to change header without creating new diff builder HOT 1
- Security Policy HOT 10
- \ No newline at end of file HOT 1
- getting difference between more than two texts HOT 1
- Support simple colored diffs HOT 2
- Diff wrapper with some utils HOT 1
- Highlight word-level changes on a line HOT 2
- List SpacePossum as maintainer HOT 2
- Whitespace changes from php-cs-fixer HOT 1
- FR: add array keys in return from `diffToArray` HOT 4
- Not working with symfony/process 5.x HOT 3
- Modernize build automation
- Fix issues identified by Psalm that are currently ignored (baseline)
- Regression in unified diff output of identical strings between 2.x and 3.x HOT 2
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 diff.