Commits

Rémi Cardona committed 24d3697

[qt4] Remove trailing line from qscintilla widget

Comments (0)

Files changed (1)

hgviewlib/qt4/hgfileview.py

             flag, data = self._model.graph.filedata(filename, self._ctx.rev(), mode, maxfilesize=-1)
         else:
             flag, data = self._model.graph.filedata(filename, self._ctx.rev(), mode)
+        if data and data[-1] == '\n':
+            data = data[:-1]
         if flag == 'file too big':
             self.filedata_frame.hide()
             message = (('<center>'