cookutils rev 979
lighttpd/index.cgi: try to improve links in the top "Debug information" block.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 17 14:25:04 2017 +0300 (2017-10-17) |
parents | b7b907696891 |
children | 1dab9ceec5ea |
files | lighttpd/index.cgi |
line diff
1.1 --- a/lighttpd/index.cgi Fri Oct 13 14:01:28 2017 +0300 1.2 +++ b/lighttpd/index.cgi Tue Oct 17 14:25:04 2017 +0300 1.3 @@ -617,7 +617,7 @@ 1.4 echo -e '<section>\n<h3>Debug information</h3>' 1.5 sed -e '/^Debug information/,$!d; /^===/d; /^$/d' $log | sed -n '1!p' | \ 1.6 if [ -n "$2" ]; then 1.7 - syntax_highlighter log | sed 's|\([0-9][0-9]*\):|<a href="#l\1">\1</a>:|' 1.8 + syntax_highlighter log | sed 's|\([^0-9 ]\)\([0-9][0-9]*\):|\1<a href="#l\2">\2</a>:|' 1.9 else 1.10 sed 's|^[0-9][0-9]*:||' | syntax_highlighter log 1.11 fi | mklog