Release 2.10.1

This commit is contained in:
Rodrigo Fernandes 2019-07-07 14:12:56 +01:00
parent 4e6db583e3
commit 0697ac6d55
No known key found for this signature in database
GPG key ID: C5DD1B4104382F6B
3 changed files with 14 additions and 3 deletions

13
dist/diff2html.js vendored
View file

@ -3513,13 +3513,16 @@ process.umask = function() { return 0; };
} }
var defaultConfig = { var defaultConfig = {
wordByWord: true, inputFormat: 'diff',
outputFormat: 'line-by-line', outputFormat: 'line-by-line',
showFiles: false,
matching: 'none', matching: 'none',
matchWordsThreshold: 0.25, matchWordsThreshold: 0.25,
matchingMaxComparisons: 2500, matchingMaxComparisons: 2500,
maxLineSizeInBlockForComparison: 200, maxLineSizeInBlockForComparison: 200,
maxLineLengthHighlight: 10000, maxLineLengthHighlight: 10000,
templates: {},
rawTemplates: {},
renderNothingWhenEmpty: false renderNothingWhenEmpty: false
}; };
@ -3999,6 +4002,10 @@ process.umask = function() { return 0; };
lineWithoutPrefix = lineWithPrefix.line; lineWithoutPrefix = lineWithPrefix.line;
} }
if (prefix === ' ') {
prefix = ' ';
}
return hoganUtils.render(genericTemplatesPath, 'line', return hoganUtils.render(genericTemplatesPath, 'line',
{ {
type: type, type: type,
@ -4662,6 +4669,10 @@ process.umask = function() { return 0; };
lineWithoutPrefix = lineWithPrefix.line; lineWithoutPrefix = lineWithPrefix.line;
} }
if (prefix === ' ') {
prefix = ' ';
}
return hoganUtils.render(genericTemplatesPath, 'line', return hoganUtils.render(genericTemplatesPath, 'line',
{ {
type: type, type: type,

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "diff2html", "name": "diff2html",
"version": "2.10.0", "version": "2.10.1",
"homepage": "https://diff2html.xyz", "homepage": "https://diff2html.xyz",
"description": "Fast Diff to colorized HTML", "description": "Fast Diff to colorized HTML",
"keywords": [ "keywords": [