summaryrefslogtreecommitdiff
path: root/foaf
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2011-07-13 14:25:30 +0200
committerJonas Smedegaard <dr@jones.dk>2011-07-13 14:25:30 +0200
commit4de7c4cd72951b7c623debf8d363358768861432 (patch)
treee706bb623331bac87a392b6d0c2ccb9c507d04b4 /foaf
parentf9ed83c87ba60e04d6dbe504f60bb9feb7add7bc (diff)
Fix catch lone & in linkedin2foaf().
Diffstat (limited to 'foaf')
-rwxr-xr-xfoaf/mkfoaf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/foaf/mkfoaf.sh b/foaf/mkfoaf.sh
index 41aabe7..7423e5b 100755
--- a/foaf/mkfoaf.sh
+++ b/foaf/mkfoaf.sh
@@ -45,7 +45,7 @@ linkedin2foaf() {
# work around unescaped &'s in linkedin pages
# xsltproc --html "$bindir/linkedin2foaf.xsl" "http://www.linkedin.com/in/$id" > "$outpath"
wget -q -O "$tmppath" "http://www.linkedin.com/in/$id"
- perl -i -pe 's/&([a-zA-Z0-9]+=)/&amp;$1/g' "$tmppath"
+ perl -i -pe 's/&([a-zA-Z0-9]+=|\s)/&amp;$1/g' "$tmppath"
xsltproc --html "$xsltdir/linkedin2foaf.xsl" "$tmppath" > "$outpath"
rm -f "$tmppath"
foafsign "$outpath"