Commit graph

35 commits

Author SHA1 Message Date
Rodrigo Fernandes
a8b9b2b49a
refactor: Initial migration to typescript 2019-12-22 17:58:43 +00:00
Rodrigo Fernandes
a047423f4e
fix: Side by side line spacing
Fixes https://github.com/rtfpessoa/diff2html/issues/251
2019-12-22 17:50:22 +00:00
Koki Oyatsu
5bf0575b46 Replace space to   for HTML Rendering.
Reason:
Some javascript frameworks(ex. vue.js) manipulate HTML tags when drawing.

At that time, if there is a space-only DOM element, the space in the DOM
element is deleted.

Before:
`` `
<span> </span>
`` `

After (space deleted)
`` `
<span></span>
`` `

In order to avoid this, it has been modified to render with &nbsp; only when there is no diff.
2019-07-07 02:39:50 +09:00
Rodrigo Fernandes
3c06b401b9
feature: Add maxLineSizeInBlockForComparison to avoid OOM
Fixes #220
2019-06-14 17:10:31 +01:00
stockmind
a222ff624c Target and style blank lines in side-by-side view 2018-11-14 22:18:39 +01:00
Rodrigo Fernandes
267748f967
Fix escaping in header lines 2017-03-18 00:11:55 +00:00
Rodrigo Fernandes
2aaae31cc2 Initial template override support 2016-10-15 13:00:31 +01:00
Rodrigo Fernandes
6a47f8f3a5
Fix convert &nbps; to proper white spaces with white-space wrap 2016-09-05 22:34:18 +01:00
Rodrigo Fernandes
2f53bf777e
Use ESLint instead of JSCS 2016-07-12 13:47:29 +01:00
Rodrigo Fernandes
fa9bdebe4c
Update tests for new design improvements 2016-05-21 02:09:16 +01:00
Rodrigo Fernandes
f32c6c9f67
Migrate Side-by-Side diffs to hogan.js 2016-05-21 00:39:49 +01:00
Rodrigo Fernandes
024c37da67 Make file summary more appealing 2016-05-20 23:41:14 +01:00
Wolfgang Illmeyer
ee494b88e5 Cap line matching comparisons 2016-04-14 17:28:06 +02:00
Rodrigo Fernandes
75c4c2da46 Clean files summary and diff headers and line numbers 2016-02-21 16:46:07 +00:00
Rodrigo Fernandes
cc6ed43f25 Remove extra white space 2016-01-10 18:49:16 +00:00
Paulo Bu
2cdb67d938 Refactors HTML code into their own methods in SideBySidePrinter 2016-01-10 18:16:43 +01:00
Rodrigo Fernandes
f3d2946aa4 Force JSCS style 2015-12-23 19:34:39 +00:00
Paulo Bu
7f08de9c67 Fixes prefix bug on side by side diff 2015-12-23 15:34:44 +01:00
Paulo Bu
c5f54d29f8 Passes config in the SideBySide constructor and uses it from within the class 2015-12-21 15:26:08 +01:00
Paulo Bu
a4cf385a7d Makes SideBySidePrinter more object oriented 2015-12-21 15:26:02 +01:00
Rodrigo Fernandes
8d86a15d69 Clean code and force code style
Since more people are contributing to the code Codacy will help
keep it consistent and easy to maintain, by suggesting improvements
2015-12-20 22:55:09 +00:00
Wolfgang Illmeyer
e41ee3eae8 Fix change grouping algorithm 2015-12-19 21:52:34 +01:00
Wolfgang Illmeyer
94516c835b make matching configurable 2015-12-09 23:17:45 +01:00
Wolfgang Illmeyer
8c059d30da Add changetype constant, fix css color for changes 2015-12-06 22:45:58 +01:00
Wolfgang Illmeyer
7335c3bab3 Enhancements for highlighting
1. Fixed a bug that prevented highlighting when more lines were deleted
from a replacement block than added

2. Added similarity search feature to match similar lines for
highlighting.

3. Highlighting: Support for matching "ins" and "del" markers to allow
for a "change" marker

4. Bugfix: All lines are now split into prefix and content spans
2015-11-27 11:39:08 +01:00
Rodrigo Fernandes
54b39158f5 fix changes summary on files headers
* since the alignment of the changes the file headers lost the style due to css changes
* update diff dependency and add dev dependencies
2015-10-31 21:55:15 +00:00
Nuno Teixeira
f1db9a9d6f Show the list of changed files
- Optionally show the file list before the diff
- Change usage to accept configuration instead of multiple methods
2015-10-19 12:47:49 +01:00
Rodrigo Fernandes
de13e9506c use webpack for the browser
* add webpack bundling
* clean bower dependencies since we are using webpack
* add jscs node style support
2015-08-08 01:11:35 +01:00
Rodrigo Fernandes
6514ac7477 clean project, better module exposing and documentation
* use native JS in example instead of jQuery
 * better module exposing now using exports, module.export, self, window, global and this
 * add example link to bower and npm definition
 * add documentation on how to highlight
2015-07-19 22:08:17 +01:00
Rodrigo Fernandes
5cc3ebf63c fix html escaping on diff 2015-06-21 22:49:05 +01:00
Rodrigo Fernandes
e598a81aa2 avoid diff prefix on hightlight 2015-05-31 23:07:23 +01:00
Rodrigo Fernandes
89b9b3926d copy, rename and friends 2015-04-20 00:24:19 +01:00
Rodrigo Fernandes
2b3c977ff9 add support for both wordByWord and charByChar hightlight 2015-04-12 11:32:37 +01:00
Rodrigo Fernandes
0662960fae compatibility with node code 2015-04-12 02:59:54 +01:00
Rodrigo Fernandes
a48fac6f1b refactor the printers 2015-04-12 00:34:33 +01:00