fix the error when creating a final print template after a title change recommendation

This commit is contained in:
Joshua Sangmeister 2020-03-12 09:39:56 +01:00
parent 3ad8944b9c
commit 70fc5a69ab

View File

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