You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using diff2html directly or using diff2html-ui helper: using diff2html-ui
Step 1: Describe the problem:
for some cases, the line similarity matching logic is not correct to my compared files, look at the example below:
You can see that diff2html has matched line number 7787 on the left with line number 7792 on the right, while I expect it to match line 7787 on the right with line 7791 on the left, the match as it currently stands is incorrect to me
Step 0: Describe your environment
Step 1: Describe the problem:
for some cases, the line similarity matching logic is not correct to my compared files, look at the example below:
You can see that diff2html has matched line number 7787 on the left with line number 7792 on the right, while I expect it to match line 7787 on the right with line 7791 on the left, the match as it currently stands is incorrect to me
here is my code:
`
const configuration: Diff2HtmlUIConfig = {
drawFileList: false,
fileListToggle: false,
fileListStartVisible: false,
outputFormat: 'side-by-side',
fileContentToggle: false,
renderNothingWhenEmpty: true,
matching: 'words',
matchWordsThreshold: 1,
stickyFileHeaders: true,
highlightLanguages: new Map<string, string>(),
// TBD: abap format - check with Yuri how to implement,
rawTemplates: {
'tag-file-changed': '',
'icon-file': '',
},
compiledTemplates: {
'generic-file-path': Hogan.compile(
'
{{ fileDiffName }}
') as Hogan.Template,
},
};
`
The text was updated successfully, but these errors were encountered: