We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ drawFileList: true, matching: "lines", outputFormat: "line-by-line", }
Blank context lines are being ignored by the diff parser
lines
export default function create_app() { const app = express(); app.set("view engine", "ejs"); app.get("/", async (request, response) => { const diff = await readFile("diffs/diff2htmldemo.diff", "utf-8"); const parsed_diff = diff2html.parse(diff); const formatted_diff = diff2html.html(parsed_diff, { drawFileList: true, matching: "lines", outputFormat: "line-by-line", }); response.render("pages/diff", { diff_tables: formatted_diff }) }); app.use("/", express.static("static")); app.use("/diff2html-bundles", express.static("node_modules/diff2html/bundles")); return app; }
The text was updated successfully, but these errors were encountered:
My IDE was removing the important leading whitespace at the beginning of blank context lines. Duh.
Sorry, something went wrong.
No branches or pull requests
Step 0: Describe your environment
Step 1: Describe the problem:
Blank context lines are being ignored by the diff parser
Steps to reproduce:
Observed Results:
lines
array, it only has length 7 and line numbers are incorrect (although contiguous)Expected Results:
lines
arrayRelevant Code:
The text was updated successfully, but these errors were encountered: