From 3e190aa23e6def3ab3a84dea1f2a4d2fb12b6fa3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 8 Jun 2015 18:06:46 +0300 Subject: [PATCH] number items --- html/qa.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/qa.php b/html/qa.php index ca8f969..bd8d661 100644 --- a/html/qa.php +++ b/html/qa.php @@ -50,14 +50,16 @@ if (isset($reports[$report])) { echo "raw
\n"; $file = "$report.txt"; $giturl = 'http://git.pld-linux.org/gitweb.cgi?p=packages/%1$s.git;f=%1$s.spec;h=HEAD;a=shortlog'; + echo '
    '; foreach (file($file) as $line) { $line = preg_replace_callback('/^(?Perror:|GIT:)\s*\[(?P[^]]+)\]\s*(?P.+)$/', function($m) use ($giturl) { $package = basename($m['spec'], '.spec'); $url = sprintf($giturl, $package); - return sprintf('%s [%s] %s', $m['prefix'], $url, $m['spec'], $m['msg']); + return sprintf('
  1. %s [%s] %s', $m['prefix'], $url, $m['spec'], $m['msg']); }, $line); echo $line, "
    \n"; } + echo '
'; } ?> -- 2.44.0