File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,13 @@ function site_header()
52
52
.copy { margin:0; padding: 0; font-size:small; }
53
53
.copy:hover { text-transform: uppercase; }
54
54
.copy:active { background: aqua; font-weight: bold; }
55
+ pre {
56
+ background: white;
57
+ border: solid 1px rgb(214, 214, 214);
58
+ padding: 0.75rem;
59
+ overflow: auto;
60
+ font: normal 0.875rem/1.5rem "Source Code Pro", monospace;
61
+ }
55
62
</style>
56
63
END_OF_MULTILINE ;
57
64
echo '<section class="mainscreen"> ' ;
Original file line number Diff line number Diff line change @@ -249,7 +249,8 @@ function showdiff ()
249
249
chdir ( GIT_DIR . 'en ' );
250
250
$ arg_h = escapeshellarg ($ h );
251
251
$ arg_f = escapeshellarg ($ gitfile );
252
- $ file = `git -c {$ safedir } diff --ignore-space-at-eol {$ arg_h } -- {$ arg_f }`;
252
+ echo "git -c {$ safedir } diff -b --word-diff=porcelain {$ arg_h } -- {$ arg_f }" ;
253
+ $ file = `git -c {$ safedir } diff -b --word-diff=porcelain {$ arg_h } -- {$ arg_f }`;
253
254
if ($ file == null )
254
255
$ file = `git -c {$ safedir } diff {$ arg_h } -- {$ arg_f }`;
255
256
$ hash = `git -c {$ safedir } log -n 1 --pretty=format:%H -- {$ arg_f }`;
You can’t perform that action at this time.
0 commit comments