Skip to content

Commit 0697ac6

Browse files
committed
Release 2.10.1
1 parent 4e6db58 commit 0697ac6

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

dist/diff2html.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3513,13 +3513,16 @@ process.umask = function() { return 0; };
35133513
}
35143514

35153515
var defaultConfig = {
3516-
wordByWord: true,
3516+
inputFormat: 'diff',
35173517
outputFormat: 'line-by-line',
3518+
showFiles: false,
35183519
matching: 'none',
35193520
matchWordsThreshold: 0.25,
35203521
matchingMaxComparisons: 2500,
35213522
maxLineSizeInBlockForComparison: 200,
35223523
maxLineLengthHighlight: 10000,
3524+
templates: {},
3525+
rawTemplates: {},
35233526
renderNothingWhenEmpty: false
35243527
};
35253528

@@ -3999,6 +4002,10 @@ process.umask = function() { return 0; };
39994002
lineWithoutPrefix = lineWithPrefix.line;
40004003
}
40014004

4005+
if (prefix === ' ') {
4006+
prefix = ' ';
4007+
}
4008+
40024009
return hoganUtils.render(genericTemplatesPath, 'line',
40034010
{
40044011
type: type,
@@ -4662,6 +4669,10 @@ process.umask = function() { return 0; };
46624669
lineWithoutPrefix = lineWithPrefix.line;
46634670
}
46644671

4672+
if (prefix === ' ') {
4673+
prefix = ' ';
4674+
}
4675+
46654676
return hoganUtils.render(genericTemplatesPath, 'line',
46664677
{
46674678
type: type,

dist/diff2html.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "diff2html",
3-
"version": "2.10.0",
3+
"version": "2.10.1",
44
"homepage": "https://diff2html.xyz",
55
"description": "Fast Diff to colorized HTML",
66
"keywords": [

0 commit comments

Comments
 (0)