diff options
Diffstat (limited to 'scripts/geojson/get_rendered_meta.sh')
-rwxr-xr-x | scripts/geojson/get_rendered_meta.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/geojson/get_rendered_meta.sh b/scripts/geojson/get_rendered_meta.sh index 120645c..9debc53 100755 --- a/scripts/geojson/get_rendered_meta.sh +++ b/scripts/geojson/get_rendered_meta.sh @@ -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" |