From 1cf43a5bca70b1be02f81b1d293e81f100dd3d03 Mon Sep 17 00:00:00 2001
From: Martyn Gigg <martyn.gigg@stfc.ac.uk>
Date: Fri, 30 May 2014 09:57:38 +0100
Subject: [PATCH] Fix mediaiwiki parser for non-lists that have multiple stars
 in line

Refs #9523
---
 Code/Mantid/docs/qtassistant/mediawiki.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Code/Mantid/docs/qtassistant/mediawiki.py b/Code/Mantid/docs/qtassistant/mediawiki.py
index f624bdc62fb..9435fa555f5 100644
--- a/Code/Mantid/docs/qtassistant/mediawiki.py
+++ b/Code/Mantid/docs/qtassistant/mediawiki.py
@@ -150,11 +150,12 @@ class MediaWiki:
         if text.find('*') < 0:
             return text # no candidates
 
-        # lines that start with '*'
+        # lines that start with a single '*'
         starts = []
         text = text.split("\n")
+
         for (i, line) in zip(range(len(text)), text):
-            if line.strip().startswith("*"):
+            if line.strip().startswith("*") and not line.strip().startswith("**"):
                 starts.append(i)
 
         # none of the stars were at the start of a line
-- 
GitLab