Fix for redmine #1487, Glossary extralinks
Coding standards - two-space tabs, line endings, remove a couple of unnecessary lines (return; at the end of a function and a global that was never used)
Merge pull request #407 from djotto/fix_redmine_1487

Fix for redmine #1487, Glossary extralinks