Merge pull request #412 from apeckham/patch-1

Fix indentation in Diff2HtmlUI example
This commit is contained in:
Rodrigo Fernandes 2021-10-21 15:11:44 +01:00 committed by GitHub
commit d3859b8088
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -269,12 +269,12 @@ document.addEventListener('DOMContentLoaded', () => {
</head>
<script>
const diffString = `diff --git a/sample.js b/sample.js
index 0000001..0ddf2ba
--- a/sample.js
+++ b/sample.js
@@ -1 +1 @@
-console.log("Hello World!")
+console.log("Hello from Diff2Html!")`;
index 0000001..0ddf2ba
--- a/sample.js
+++ b/sample.js
@@ -1 +1 @@
-console.log("Hello World!")
+console.log("Hello from Diff2Html!")`;
document.addEventListener('DOMContentLoaded', function () {
var targetElement = document.getElementById('myDiffElement');