diff --git a/dist/diff2html.css b/dist/diff2html.css
index 9edb2e1..38f5949 100644
--- a/dist/diff2html.css
+++ b/dist/diff2html.css
@@ -93,6 +93,15 @@
margin-bottom: -8px;
}
+.d2h-wrapped-file-side-diff {
+ display: inline-block;
+ overflow-x: scroll;
+ overflow-y: hidden;
+ width: 100%;
+ margin-right: -4px;
+ margin-bottom: -8px;
+}
+
.d2h-code-line {
display: inline-block;
white-space: nowrap;
@@ -107,6 +116,14 @@
margin-left: 50px;
}
+.d2h-wrapped-code-side-line {
+ display: inline-block;
+ white-space: nowrap;
+ padding: 0 10px;
+ width:720px;
+}
+
+.d2h-wrapped-code-side-line del,
.d2h-code-line del,
.d2h-code-side-line del {
display: inline-block;
@@ -116,6 +133,7 @@
border-radius: 0.2em;
}
+.d2h-wrapped-code-side-line ins,
.d2h-code-line ins,
.d2h-code-side-line ins {
display: inline-block;
@@ -142,6 +160,15 @@
white-space: pre;
}
+.d2h-wrapped-code-line-ctn {
+ display: inline;
+ background: none;
+ padding: 0;
+ word-wrap: break-word;
+ white-space: pre-wrap;
+ word-break: break-all;
+}
+
.line-num1 {
box-sizing: border-box;
float: left;
@@ -190,6 +217,22 @@
text-overflow: ellipsis;
}
+.d2h-wrapped-code-side-linenumber {
+ box-sizing: border-box;
+ position: relative;
+ width: 56px;
+ padding-left: 25px;
+ padding-right: 5px;
+ background-color: #fff;
+ color: rgba(0, 0, 0, 0.3);
+ text-align: right;
+ border: solid #eeeeee;
+ border-width: 0 1px 0 1px;
+ cursor: pointer;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
/*
* Changes Highlight
*/
@@ -331,6 +374,8 @@
.selecting-right td.d2h-code-linenumber *,
.selecting-left .d2h-code-side-line,
.selecting-left .d2h-code-side-line *,
+.selecting-left .d2h-wrapped-code-side-line,
+.selecting-left .d2h-wrapped-code-side-line *,
.selecting-right td.d2h-code-side-linenumber,
.selecting-right td.d2h-code-side-linenumber * {
-webkit-touch-callout: none;
@@ -344,6 +389,8 @@
.selecting-left .d2h-code-line *::-moz-selection,
.selecting-right td.d2h-code-linenumber::-moz-selection,
.selecting-left .d2h-code-side-line::-moz-selection,
+.selecting-left .d2h-wrapped-code-side-line *::-moz-selection,
+.selecting-left .d2h-wrapped-code-side-line::-moz-selection,
.selecting-left .d2h-code-side-line *::-moz-selection,
.selecting-right td.d2h-code-side-linenumber::-moz-selection,
.selecting-right td.d2h-code-side-linenumber *::-moz-selection {
@@ -355,6 +402,8 @@
.selecting-right td.d2h-code-linenumber::selection,
.selecting-left .d2h-code-side-line::selection,
.selecting-left .d2h-code-side-line *::selection,
+.selecting-left .d2h-wrapped-code-side-line::selection,
+.selecting-left .d2h-wrapped-code-side-line *::selection,
.selecting-right td.d2h-code-side-linenumber::selection,
.selecting-right td.d2h-code-side-linenumber *::selection {
background: transparent;
diff --git a/dist/diff2html.js b/dist/diff2html.js
index d588413..3256b52 100644
--- a/dist/diff2html.js
+++ b/dist/diff2html.js
@@ -454,21 +454,21 @@ return /******/ (function(modules) { // webpackBootstrap
/*istanbul ignore end*/ // Based on https://en.wikipedia.org/wiki/Latin_script_in_Unicode
//
// Ranges and exceptions:
- // Latin-1 Supplement, 0080–00FF
+ // Latin-1 Supplement, 0080?00FF
// - U+00D7 × Multiplication sign
// - U+00F7 ÷ Division sign
- // Latin Extended-A, 0100–017F
- // Latin Extended-B, 0180–024F
- // IPA Extensions, 0250–02AF
- // Spacing Modifier Letters, 02B0–02FF
- // - U+02C7 ˇ ˇ Caron
- // - U+02D8 ˘ ˘ Breve
- // - U+02D9 ˙ ˙ Dot Above
- // - U+02DA ˚ ˚ Ring Above
- // - U+02DB ˛ ˛ Ogonek
- // - U+02DC ˜ ˜ Small Tilde
- // - U+02DD ˝ ˝ Double Acute Accent
- // Latin Extended Additional, 1E00–1EFF
+ // Latin Extended-A, 0100?017F
+ // Latin Extended-B, 0180?024F
+ // IPA Extensions, 0250?02AF
+ // Spacing Modifier Letters, 02B0?02FF
+ // - U+02C7 ? ˇ Caron
+ // - U+02D8 ? ˘ Breve
+ // - U+02D9 ? ˙ Dot Above
+ // - U+02DA ? ˚ Ring Above
+ // - U+02DB ? ˛ Ogonek
+ // - U+02DC ? ˜ Small Tilde
+ // - U+02DD ? ˝ Double Acute Accent
+ // Latin Extended Additional, 1E00?1EFF
var extendedWordChars = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/;
var reWhitespace = /\S/;
@@ -6296,14 +6296,14 @@ module.exports = toPlainObject;
var newRemainingPath = newFilenameParts.slice(i, k + 1).join(separator);
if (finalPrefix.length && finalSuffix.length) {
- return finalPrefix + separator + '{' + oldRemainingPath + ' → ' + newRemainingPath + '}' + separator + finalSuffix;
+ return finalPrefix + separator + '{' + oldRemainingPath + ' ? ' + newRemainingPath + '}' + separator + finalSuffix;
} else if (finalPrefix.length) {
- return finalPrefix + separator + '{' + oldRemainingPath + ' → ' + newRemainingPath + '}';
+ return finalPrefix + separator + '{' + oldRemainingPath + ' ? ' + newRemainingPath + '}';
} else if (finalSuffix.length) {
- return '{' + oldRemainingPath + ' → ' + newRemainingPath + '}' + separator + finalSuffix;
+ return '{' + oldRemainingPath + ' ? ' + newRemainingPath + '}' + separator + finalSuffix;
}
- return oldFilename + ' → ' + newFilename;
+ return oldFilename + ' ? ' + newFilename;
} else if (newFilename && !isDevNullName(newFilename)) {
return newFilename;
} else if (oldFilename) {
@@ -7680,4 +7680,4 @@ process.chdir = function (dir) {
};
process.umask = function() { return 0; };
-},{}]},{},[102]);
+},{}]},{},[102]);
\ No newline at end of file
diff --git a/docs/demo.html b/docs/demo.html
index 19434c6..10b424a 100644
--- a/docs/demo.html
+++ b/docs/demo.html
@@ -36,7 +36,7 @@
-
+
@@ -240,16 +240,16 @@
}
-
-
+
+
-
-
+
-
-
+
+
+