diff options
author | Thomas Lange <lange@debian.org> | 2023-07-23 13:46:40 +0200 |
---|---|---|
committer | Thomas Lange <lange@debian.org> | 2023-07-23 13:46:40 +0200 |
commit | 92a672983124eeb92c3bba7ab8cfd9d834bc10a4 (patch) | |
tree | eb792a60eb07f15ff56081c8bb5c64602e7e26bc /english/template | |
parent | 70efe53c10bc915562a77c944385c6f51d292e71 (diff) |
skip lines without valid content (e.g. empty lines)
Diffstat (limited to 'english/template')
-rw-r--r-- | english/template/debian/recent_list.wml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/english/template/debian/recent_list.wml b/english/template/debian/recent_list.wml index 644daa563dc..aadccaf45f2 100644 --- a/english/template/debian/recent_list.wml +++ b/english/template/debian/recent_list.wml @@ -49,6 +49,7 @@ sub get_top_news() { # read list of homepagenews foreach my $id (<DATAFILE>) { chomp $id; + next unless /^\d+$/; print get_recent_list('News/2y', '1', '$(ENGLISHDIR)', 'bydate frontpage', $id); } close DATAFILE; |