Anonymous committed 49519e6

Updated wiki user links processing to strip out paragraph tags that should not be included in our output.

Comments (0)

Files changed (1)


         // in order to get full user profile link rendering we end up using the wiki render to turn [~xxxxx] into a user profile link
         // freaky eh?  wiki in markup inside wiki?
         String wikiLink = rendererManager.getRendererForType(AtlassianWikiRenderer.RENDERER_TYPE).render(markup, issueRenderContext);
+        // The wiki renderer sees that we are only rendering the name link,
+        // and so it wraps it in paragraph tags which we do not want.
+        wikiLink = wikiLink.replaceAll("<p>", "");
+        wikiLink = wikiLink.replaceAll("</p>", "");