forked from openlp/openlp
Change === and --- around
This commit is contained in:
parent
857756e20f
commit
ea6f90fc74
@ -221,7 +221,7 @@ class Renderer(object):
|
||||
if len(pages) > 1:
|
||||
if item.is_capable(ItemCapabilities.AllowsVirtualSplit):
|
||||
# do not forget the line breaks !
|
||||
slides = slide.split(u'\n[===]\n')
|
||||
slides = slide.split(u'\n[---]\n')
|
||||
pages = []
|
||||
for slide in slides:
|
||||
lines = self._lines(slide)
|
||||
|
@ -173,7 +173,7 @@ class EditCustomForm(QtGui.QDialog, Ui_CustomEditDialog):
|
||||
item = self.slideListView.item(row)
|
||||
slide_list += item.text()
|
||||
if row != self.slideListView.count() - 1:
|
||||
slide_list += u'\n[---]\n'
|
||||
slide_list += u'\n[===]\n'
|
||||
self.editSlideForm.setText(slide_list)
|
||||
if self.editSlideForm.exec_():
|
||||
self.updateSlideList(self.editSlideForm.getText(), True)
|
||||
|
@ -63,7 +63,7 @@ class EditCustomSlideForm(QtGui.QDialog, Ui_CustomSlideEditDialog):
|
||||
"""
|
||||
Returns a list with all slides.
|
||||
"""
|
||||
return self.slideTextEdit.toPlainText().split(u'\n[---]\n')
|
||||
return self.slideTextEdit.toPlainText().split(u'\n[===]\n')
|
||||
|
||||
def onSplitButtonPressed(self):
|
||||
"""
|
||||
@ -71,5 +71,5 @@ class EditCustomSlideForm(QtGui.QDialog, Ui_CustomSlideEditDialog):
|
||||
"""
|
||||
if self.slideTextEdit.textCursor().columnNumber() != 0:
|
||||
self.slideTextEdit.insertPlainText(u'\n')
|
||||
self.slideTextEdit.insertPlainText(u'[---]\n')
|
||||
self.slideTextEdit.insertPlainText(u'[===]\n')
|
||||
self.slideTextEdit.setFocus()
|
||||
|
Loading…
Reference in New Issue
Block a user