Skip to content

Commit d2cbba4

Browse files
authored
Add styling, overflow for <pre> blocks (closes #46) (#61)
1 parent 4e57bbb commit d2cbba4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

include/lib_general.inc.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ function site_header()
5252
.copy { margin:0; padding: 0; font-size:small; }
5353
.copy:hover { text-transform: uppercase; }
5454
.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+
}
5562
</style>
5663
END_OF_MULTILINE;
5764
echo '<section class="mainscreen">';

include/lib_revcheck.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ function showdiff ()
249249
chdir( GIT_DIR . 'en' );
250250
$arg_h = escapeshellarg($h);
251251
$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}`;
253254
if ($file == null)
254255
$file = `git -c {$safedir} diff {$arg_h} -- {$arg_f}`;
255256
$hash = `git -c {$safedir} log -n 1 --pretty=format:%H -- {$arg_f}`;

0 commit comments

Comments
 (0)