diff --git a/Code/Mantid/docs/qtassistant/mediawiki.py b/Code/Mantid/docs/qtassistant/mediawiki.py index f624bdc62fb0e4a047f41b3922205b95339ec687..9435fa555f54a74867716b61498ef9d9b5c7dea7 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