diff --git a/openlp/core/lib/renderer.py b/openlp/core/lib/renderer.py index 02f6970ac..226e8b472 100644 --- a/openlp/core/lib/renderer.py +++ b/openlp/core/lib/renderer.py @@ -250,7 +250,12 @@ class Renderer(object): # render the first virtual slide. text_contains_break = u'[---]' in text if text_contains_break: - text_to_render, text = text.split(u'\n[---]\n', 1) + try: + text_to_render, text = \ + text.split(u'\n[---]\n', 1) + except: + text_to_render = text.split(u'\n[---]\n')[0] + text = u'' else: text_to_render = text text = u''