Backport to generate_contributions.py

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38159 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2011-03-30 13:49:43 +00:00
parent a5a2d0c398
commit a10f116493

View File

@ -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));