--- a/Allura/allura/tests/test_globals.py
+++ b/Allura/allura/tests/test_globals.py
@@ -148,6 +148,15 @@
 def test_macro_project_admins():
     r = g.markdown_wiki.convert('[[project_admins]]')
     assert_equal(r, '<div class="markdown_content"><p><a href="/u/test-admin/">Test Admin</a><br /></p></div>')
+
+def test_macro_project_admins_one_br():
+    p_nbhd = M.Neighborhood.query.get(name='Projects')
+    p_test = M.Project.query.get(shortname='test', neighborhood_id=p_nbhd._id)
+    p_test.add_user(M.User.by_username('test-user'), ['Admin'])
+    ThreadLocalORMSession.flush_all()
+    r = g.markdown_wiki.convert('[[project_admins]]\n[[download_button]]')
+    assert not '</a><br /><br /><a href=' in r, r
+    assert '</a><br /><a href=' in r, r
 
 def test_markdown_toc():
     r = g.markdown_wiki.convert("""[TOC]