diff options
author | Markus Koch <markus@notsyncing.net> | 2021-02-26 19:56:05 +0100 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2021-02-26 19:56:05 +0100 |
commit | 447cd904c4d050440eb509e513a900badf080249 (patch) | |
tree | b95c7c9c1108b70704c514324664f3eff5291266 /scripts/geojson/get_rendered_meta.sh | |
parent | d67439efd66634052edfee0a6dfcca0b49017d05 (diff) | |
parent | 314f0da3beffc0faf77a9e9c2fecc2b5742d7eef (diff) | |
download | lifomapserver-447cd904c4d050440eb509e513a900badf080249.tar.gz lifomapserver-447cd904c4d050440eb509e513a900badf080249.tar.bz2 lifomapserver-447cd904c4d050440eb509e513a900badf080249.zip |
Merge branch 'dev' of git.notsyncing.net:markus/lifomapserver into dev
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" |