cemerick / jsdifflib

A javascript library for diffing text and generating corresponding HTML views

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Indentation problem

jsafield opened this issue · comments

$$div.appendChild(diffview.buildView({
baseTextLines: base,
newTextLines: newtxt,
opcodes: opcodes,
// set the display titles for each resource
baseTextName: "Old version",
newTextName: "New version",
contextSize: 12,
viewType: 0
}));

baseTextLines and newTextLines has white spaces and well indented. But when it prints the value of base text and new text to the screen, they are not indented. What can be the problem?