Skip to content

Commit

Permalink
Release 2.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfpessoa committed Jul 7, 2019
1 parent 4e6db58 commit 0697ac6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion dist/diff2html.js
Original file line number Diff line number Diff line change
Expand Up @@ -3513,13 +3513,16 @@ process.umask = function() { return 0; };
}

var defaultConfig = {
wordByWord: true,
inputFormat: 'diff',
outputFormat: 'line-by-line',
showFiles: false,
matching: 'none',
matchWordsThreshold: 0.25,
matchingMaxComparisons: 2500,
maxLineSizeInBlockForComparison: 200,
maxLineLengthHighlight: 10000,
templates: {},
rawTemplates: {},
renderNothingWhenEmpty: false
};

Expand Down Expand Up @@ -3999,6 +4002,10 @@ process.umask = function() { return 0; };
lineWithoutPrefix = lineWithPrefix.line;
}

if (prefix === ' ') {
prefix = ' ';
}

return hoganUtils.render(genericTemplatesPath, 'line',
{
type: type,
Expand Down Expand Up @@ -4662,6 +4669,10 @@ process.umask = function() { return 0; };
lineWithoutPrefix = lineWithPrefix.line;
}

if (prefix === ' ') {
prefix = ' ';
}

return hoganUtils.render(genericTemplatesPath, 'line',
{
type: type,
Expand Down
2 changes: 1 addition & 1 deletion dist/diff2html.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "diff2html",
"version": "2.10.0",
"version": "2.10.1",
"homepage": "https://diff2html.xyz",
"description": "Fast Diff to colorized HTML",
"keywords": [
Expand Down

0 comments on commit 0697ac6

Please sign in to comment.