Skip to content

Commit 2cc9bc8

Browse files
committed
[processing] Fix unexpected newlines showing in python command in history dialog
1 parent 1621402 commit 2cc9bc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/plugins/processing/gui/HistoryDialog.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from qgis.PyQt.QtWidgets import QAction, QPushButton, QDialogButtonBox, QStyle, QMessageBox, QFileDialog, QMenu, QTreeWidgetItem
3434
from qgis.PyQt.QtGui import QIcon
3535
from processing.gui import TestTools
36-
from processing.core.ProcessingLog import ProcessingLog
36+
from processing.core.ProcessingLog import ProcessingLog, LOG_SEPARATOR
3737

3838
pluginPath = os.path.split(os.path.dirname(__file__))[0]
3939

@@ -125,7 +125,7 @@ def executeAlgorithm(self):
125125
def changeText(self):
126126
item = self.tree.currentItem()
127127
if isinstance(item, TreeLogEntryItem):
128-
self.text.setText(item.entry.text.replace('|', '\n'))
128+
self.text.setText(item.entry.text.replace(LOG_SEPARATOR, '\n'))
129129

130130
def createTest(self):
131131
item = self.tree.currentItem()
@@ -150,4 +150,4 @@ def __init__(self, entry, isAlg):
150150
QTreeWidgetItem.__init__(self)
151151
self.entry = entry
152152
self.isAlg = isAlg
153-
self.setText(0, '[' + entry.date + '] ' + entry.text.split('|')[0])
153+
self.setText(0, '[' + entry.date + '] ' + entry.text.split(LOG_SEPARATOR)[0])

0 commit comments

Comments
 (0)