]> git.lyx.org Git - features.git/commitdiff
Backport to generate_contributions.py
authorPavel Sanda <sanda@lyx.org>
Wed, 30 Mar 2011 13:49:43 +0000 (13:49 +0000)
committerPavel Sanda <sanda@lyx.org>
Wed, 30 Mar 2011 13:49:43 +0000 (13:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38159 a592a061-630c-0410-9148-cb99ea01b6c8

lib/generate_contributions.py

index ff96f0d154e83f79840702b4cb389d0b4d758352..4f000d55376ffa92be63d2e2fa94a4c648ca88e4 100755 (executable)
@@ -152,9 +152,12 @@ function credits_contrib($name, $email, $msg) {
 $email = str_replace(' () ', '@', $email);
 $email = str_replace(' ! ', '.', $email);
 
-if (isset($email) && $email != "")
-        $output=$output. "<dt><b>[[mailto:${email} | ${name}]]</b>";
-else
+if (isset($email) && $email != "") {
+        if (strncasecmp($email,"http",4) == 0)
+            $output =$output. "<dt><b>[[${email} | ${name}]]</b>";
+         else
+            $output=$output. "<dt><b>[[mailto:${email} | ${name}]]</b>";
+} else
         $output=$output. "<dt><b>${name}</b>";
 
 $msg = ereg_replace("\\n *", "\\n  ", ltrim($msg));