~kile/kile/livepreview-xenial

« back to all changes in this revision

Viewing changes to src/widgets/outputview.cpp

  • Committer: Package Import Robot
  • Author(s): Prasad Murthy
  • Date: 2013-01-24 19:03:35 UTC
  • mfrom: (1.1.24)
  • Revision ID: package-import@ubuntu.com-20130124190335-29sj32fdx0d2kcmw
Tags: 1:2.1.3-0ubuntu1
* New upstream release
* Drop kubuntu_02_disable_embedded_kbibtex.diff as kbibtex is now usable with kde4
* Add kbibtex to suggests
* Change the Vcs links to the Ubuntu bzr branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*************************************************************************************
2
2
    begin                : Sun Dec 21 2003
3
3
    copyright            : (C) 2003 by Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)
4
 
                           (C) 2009 by Michel Ludwig (michel.ludwig@kdemail.net)
 
4
                           (C) 2009-2012 by Michel Ludwig (michel.ludwig@kdemail.net)
5
5
 *************************************************************************************/
6
6
 
7
7
/***************************************************************************
24
24
OutputView::OutputView(QWidget *parent) : KTextEdit(parent)
25
25
{
26
26
        setReadOnly(true);
 
27
        setAcceptRichText(false);
27
28
}
28
29
 
29
30
OutputView::~OutputView()
40
41
        int newLineAt = str.lastIndexOf('\n');
41
42
        if(newLineAt != -1) {
42
43
                line += str.left(newLineAt); //don't copy the newline char
43
 
                line.replace('<', "&lt;");
44
 
                line.replace('>', "&gt;");
45
44
                append(line);
46
45
                line = str.mid(newLineAt + 1);
47
46
        }