Removing leading <br> paragraph

Technically, this is an error in the data (aka MediaWiki), but w/e...
master
Markus Koch 2021-02-09 22:19:04 +01:00
parent f36d3cf0e7
commit 314f0da3be
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ categories=""
data=`curl -s "$1"`
temp=`echo "$data" | sed -n 's/<p>\(.\+\).*/\1/p' | head -n1`
temp=`echo "$data" | sed -n 's/<p>\(.\+\).*/\1/p' | grep -v -e '^<br />$' | sed 's#^</p>##' | head -n1`
if [ "$temp" != "" ]; then
temp=`echo "$temp" | sed "s#href=\"#href=\"$BASE#g" | sed 's/"/\\\\"/g' | sed 's/\t//g'`
description="$temp"