cubicdaiya / dtl-legacy Goto Github PK
View Code? Open in Web Editor NEWdiff template library written by C++ (left for old commit histrories)
License: Other
diff template library written by C++ (left for old commit histrories)
License: Other
It would be nice to be able to enable or configure colorized output. Since everything is done with #define
statements and no line terminators can be configured (e.g. to disable colors) it isn't currently possible without writing your own printing functions. I've made a change here:
And now the output is like the diff
utility in a terminal, giving nice colored output. Downsides are that this isn't supported in Windows I guess, but that's not a big concern for me considering it's just used for unit tests. Here is an example of it in action:
I'm not that good with C++ and templates in general, but would it be possible to add this as an option to the original dtl library? I doubt you always want to output these special characters, especially in terminals that don't support it.
One idea I had was to modify the #define
statements to use #ifndef
, that way I could define some character sequences for the summary/additions/deletions and line endings before including the dtl.hpp
file and it would use them. Is that a reasonable approach to this problem?
Hi,
I've noticed there seems to be some commits in this repository that have errors regarding invalid committer/author name. You can verify this using git fsck
.
$ git fsck
Checking object directories: 100% (256/256), done.
error in commit 78c31c136b06871558afe81bd0c28cd51d1734d8: missingSpaceBeforeEmail: invalid author/committer line - missing space before email
error in commit 5335e12c058a6caddb80dcfc427568900e6de627: missingSpaceBeforeEmail: invalid author/committer line - missing space before email
error in commit 955ce46d4a3f0643145b77ec6af1a3f3758d1dd8: missingSpaceBeforeEmail: invalid author/committer line - missing space before email
...
error in commit 16d12eac929333d985bffa902f42df0420c4bb4b: missingSpaceBeforeEmail: invalid author/committer line - missing space before email
Checking objects: 100% (2212/2212), done.
I'm not too sure how we can fix this, perhaps we can figure out first how this happened first.
This was originally posted to apiaryio/drafter#241 as we are using dtl as a submodule.
dtl_test with result-file successes in except dtl/test. In this case dtl_test must fail.
Insert file-exist-check in test code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.