Merge pull request #5244 from jsangmeister/fix-final-print-template

Fix the error when creating a final print template after a title change recommendation
This commit is contained in:
Emanuel Schütze 2020-03-12 15:14:58 +01:00 committed by GitHub
commit 35d9fd9d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2116,8 +2116,10 @@ export class DiffService {
}); });
changes.forEach((change: ViewUnifiedChange) => { changes.forEach((change: ViewUnifiedChange) => {
html = this.lineNumberingService.insertLineNumbers(html, lineLength, null, null, 1); if (!change.isTitleChange()) {
html = this.replaceLines(html, change.getChangeNewText(), change.getLineFrom(), change.getLineTo()); html = this.lineNumberingService.insertLineNumbers(html, lineLength, null, null, 1);
html = this.replaceLines(html, change.getChangeNewText(), change.getLineFrom(), change.getLineTo());
}
}); });
html = this.lineNumberingService.insertLineNumbers(html, lineLength, highlightLine, null, 1); html = this.lineNumberingService.insertLineNumbers(html, lineLength, highlightLine, null, 1);