@@ -57,11 +57,10 @@ var filesExample1 =
57
57
' <ol class="d2h-file-list">\n' +
58
58
' <li class="d2h-file-list-line">\n' +
59
59
' <span class="d2h-file-name-wrapper">\n' +
60
- ' <span><svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"\n' +
61
- ' viewBox="0 0 14 16" width="14">\n' +
62
- ' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>\n' +
63
- '</svg></span>\n' +
64
- ' <a href="#d2h-675094" class="d2h-file-name">sample</a>\n' +
60
+ ' <svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"\n' +
61
+ ' viewBox="0 0 14 16" width="14">\n' +
62
+ ' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>\n' +
63
+ ' </svg> <a href="#d2h-675094" class="d2h-file-name">sample</a>\n' +
65
64
' <span class="d2h-file-stats">\n' +
66
65
' <span class="d2h-lines-added">+1</span>\n' +
67
66
' <span class="d2h-lines-deleted">-1</span>\n' +
@@ -76,10 +75,9 @@ var htmlLineExample1 =
76
75
' <div id="d2h-675094" class="d2h-file-wrapper" data-lang="">\n' +
77
76
' <div class="d2h-file-header">\n' +
78
77
' <span class="d2h-file-name-wrapper">\n' +
79
- ' <span class="d2h-icon-wrapper"><svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">\n' +
80
- ' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>\n' +
81
- '</svg></span>\n' +
82
- ' <span class="d2h-file-name">sample</span>\n' +
78
+ ' <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">\n' +
79
+ ' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>\n' +
80
+ ' </svg> <span class="d2h-file-name">sample</span>\n' +
83
81
' <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span>\n' +
84
82
' </div>\n' +
85
83
' <div class="d2h-file-diff">\n' +
@@ -128,10 +126,9 @@ var htmlSideExample1 =
128
126
' <div id="d2h-675094" class="d2h-file-wrapper" data-lang="">\n' +
129
127
' <div class="d2h-file-header">\n' +
130
128
' <span class="d2h-file-name-wrapper">\n' +
131
- ' <span class="d2h-icon-wrapper"><svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">\n' +
132
- ' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>\n' +
133
- '</svg></span>\n' +
134
- ' <span class="d2h-file-name">sample</span>\n' +
129
+ ' <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">\n' +
130
+ ' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>\n' +
131
+ ' </svg> <span class="d2h-file-name">sample</span>\n' +
135
132
' <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span>\n' +
136
133
' </div>\n' +
137
134
' <div class="d2h-files-diff">\n' +
@@ -317,10 +314,9 @@ describe('Diff2Html', function() {
317
314
' <div id="d2h-211439" class="d2h-file-wrapper" data-lang="md">\n' +
318
315
' <div class="d2h-file-header">\n' +
319
316
' <span class="d2h-file-name-wrapper">\n' +
320
- ' <span class="d2h-icon-wrapper"><svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">\n' +
321
- ' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>\n' +
322
- '</svg></span>\n' +
323
- ' <span class="d2h-file-name">CHANGELOG.md</span>\n' +
317
+ ' <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">\n' +
318
+ ' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>\n' +
319
+ ' </svg> <span class="d2h-file-name">CHANGELOG.md</span>\n' +
324
320
' <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span>\n' +
325
321
' </div>\n' +
326
322
' <div class="d2h-file-diff">\n' +
0 commit comments