From: Nicolas Boisselier Date: Tue, 24 Jul 2018 21:32:15 +0000 (+0100) Subject: bin/rss-feedparser X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=b8427befdcd47816c630480dd74dbb14c926770c;p=nb.git bin/rss-feedparser --- diff --git a/bin/rss-feedparser b/bin/rss-feedparser index cd1a4fb9..8463a1a3 100755 --- a/bin/rss-feedparser +++ b/bin/rss-feedparser @@ -45,6 +45,7 @@ def getHeadlines( rss_url ): # Title if 'title' in newsitem: + newsitem['title'] = newsitem['title'][:200] line.append(newsitem['title']) else: continue diff --git a/lib/php/db/table.php b/lib/php/db/table.php index abf16be0..95d21b6e 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -732,13 +732,20 @@ Class Table extends nb { $y = $tot; $prev = -1; $next = 999999; + #$next = $tot + 1; + #debug('zaza'); + #$this->debug("x=$x limit=$y prev=$prev next=$next tot=$tot",0); } - if ($prev>=0) $html .= '< '; + if ($prev>=0) { + $html .= '< '; + } $html .= ''.($tot ? ($x+1) : 0).' - '.( $tot<($x+$y) ? $tot : ($x+$y) ).' / '.$tot.''; - if ($next<$tot) $html .= ' >'; + if ($next<$tot) { + $html .= ' >'; + } return $html;