File tree Expand file tree Collapse file tree 3 files changed +25
-19
lines changed Expand file tree Collapse file tree 3 files changed +25
-19
lines changed Original file line number Diff line number Diff line change 5050 <span class =" diff-line-content-raw" >
5151 <span data-template >
5252 {@html props .diffLine .plainTemplate }
53- </span >
54- {#if props .diffLine .changes .newLineSymbol === NewLineSymbol .NEWLINE }
53+ </span >{#if props .diffLine .changes .newLineSymbol === NewLineSymbol .NEWLINE }
5554 <span
5655 data-no-newline-at-end-of-file-symbol
5756 class ={props .enableWrap
7574 {@const _str2 = isLast ? str2 .replace (' \n ' , ' ' ).replace (' \r ' , ' ' ) : str2 }
7675 <span class =" diff-line-content-raw" >
7776 <span data-range-start ={range .location } data-range-end ={range .location + range .length }>
78- {str1 }
79- <span
77+ <span >
78+ {str1 }
79+ </span ><span
8080 data-diff-highlight
8181 class =" rounded-[0.2em]"
8282 style ={`
8383 background-color:
84- ${props .operator === ' add' ? ` var(${addContentHighlightBGName }) ` : ` var(${delContentHighlightBGName }) ` },
84+ ${props .operator === ' add' ? ` var(${addContentHighlightBGName }) ` : ` var(${delContentHighlightBGName }) ` }
8585 ` }
8686 >
8787 {#if isLast }
88- {_str2 }
89- <span data-newline-symbol >{getSymbol (props .diffLine .changes .newLineSymbol )}</span >
88+ <span >
89+ {_str2 }
90+ </span ><span data-newline-symbol >{getSymbol (props .diffLine .changes .newLineSymbol )}</span
91+ >
9092 {:else }
9193 {str2 }
9294 {/if }
95+ </span ><span >
96+ {str3 .replace (' \n ' , ' ' ).replace (' \r ' , ' ' )}
9397 </span >
94- {str3 }
95- </span >
96- {#if props .diffLine .changes .newLineSymbol === NewLineSymbol .NEWLINE }
98+ </span >{#if props .diffLine .changes .newLineSymbol === NewLineSymbol .NEWLINE }
9799 <span
98100 data-no-newline-at-end-of-file-symbol
99101 class ={props .enableWrap
Original file line number Diff line number Diff line change 6060 <span class =" diff-line-syntax-raw" >
6161 <span data-template >
6262 {@html props .diffLine .syntaxTemplate }
63- </span >
64- {#if props .diffLine .changes .newLineSymbol === NewLineSymbol .NEWLINE }
63+ </span >{#if props .diffLine .changes .newLineSymbol === NewLineSymbol .NEWLINE }
6564 <span
6665 data-no-newline-at-end-of-file-symbol
6766 class ={props .enableWrap
109108 class ={wrapper ?.properties ?.className ?.join (' ' )}
110109 style ={wrapper ?.properties ?.style }
111110 >
112- {str1 }
113- <span
111+ <span >
112+ {str1 }
113+ </span ><span
114114 data-diff-highlight
115115 style ={`
116116 background-color:
122122 ` }
123123 >
124124 {#if isLast }
125- {_str2 }
126- <span data-newline-symbol >{getSymbol (props .diffLine .changes .newLineSymbol )}</span >
125+ <span >
126+ {_str2 }
127+ </span ><span data-newline-symbol
128+ >{getSymbol (props .diffLine .changes .newLineSymbol )}</span
129+ >
127130 {:else }
128131 {str2 }
129132 {/if }
133+ </span ><span >
134+ {str3 .replaceAll (' \n ' , ' ' ).replaceAll (' \r ' , ' ' )}
130135 </span >
131- {str3 }
132136 </span >
133137 {/if }
134138 {/each }
135- </span >
136- {#if props .diffLine .changes .newLineSymbol === NewLineSymbol .NEWLINE }
139+ </span >{#if props .diffLine .changes .newLineSymbol === NewLineSymbol .NEWLINE }
137140 <span
138141 data-no-newline-at-end-of-file-symbol
139142 class ={props .enableWrap
Original file line number Diff line number Diff line change 4040 worker ?.addEventListener (' message' , (e : MessageEvent <MessageData >) => {
4141 const { data, bundle } = e .data ;
4242 const instance = DiffFile .createInstance (data || {}, bundle );
43+ // instance.disableTemplate();
4344 diffFile = instance ;
4445 });
4546
You can’t perform that action at this time.
0 commit comments