dot

packages and services management
Log | Files | Refs | README

commit ffd19d732b7077a6d957ab84847b3fa9ace75417
parent 3612e777eeb345ffb0072414fa7b54e9f8464b80
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri,  7 Apr 2017 15:41:51 +0200

do not highlight #file tr

Diffstat:
Mbin/www-git | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/www-git b/bin/www-git @@ -95,14 +95,14 @@ commits() file() { - printf '<table>\n<tr>\n<td>\n<pre id="num">\n' + printf '<table id="file">\n<tr>\n<td>\n<pre id="num">\n' if grep -qI . "$1" 1>/dev/null then seq "$(wc -l < "$1")" | sed 's|.*|<a id="&" href="#&">&</a>|' - printf '</pre></td>\n<td id="file"><pre>\n' + printf '</pre></td>\n<td><pre>\n' sed 's|&|\&amp;|g; s|<|\&lt;|g' "$1" else @@ -143,7 +143,7 @@ files() printf '\n</tbody>\n</table>\n' - [ -f 'README' ] && printf '<h2/>README</h2>\n' && file 'README' + [ -f 'README' ] && printf '<h2>README</h2>\n' && file 'README' }