From d482ab19967ae093feef4a5f1b7aec4e24d37cc3 Mon Sep 17 00:00:00 2001
From: Martyn Gigg <martyn.gigg@stfc.ac.uk>
Date: Mon, 2 Jun 2014 18:38:06 +0100
Subject: [PATCH] Fix deprecated algorithm reference link.

Refs #9562
---
 Code/Mantid/docs/sphinxext/mantiddoc/directives/algorithm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Code/Mantid/docs/sphinxext/mantiddoc/directives/algorithm.py b/Code/Mantid/docs/sphinxext/mantiddoc/directives/algorithm.py
index ec14e58566f..d2dfb14d107 100644
--- a/Code/Mantid/docs/sphinxext/mantiddoc/directives/algorithm.py
+++ b/Code/Mantid/docs/sphinxext/mantiddoc/directives/algorithm.py
@@ -187,7 +187,7 @@ class AlgorithmDirective(BaseDirective):
         match = DEPRECATE_USE_ALG_RE.search(msg)
         if match is not None and len(match.groups()) == 1:
             name = match.group(0)
-            msg = DEPRECATE_USE_ALG_RE.sub(r"Use :ref:`algorithm|\1` instead.", msg)
+            msg = DEPRECATE_USE_ALG_RE.sub(r"Use :ref:`algm-\1` instead.", msg)
 
         self.add_rst(".. warning:: %s" % msg)
 
-- 
GitLab