Attached are a .patch for debian/patches and a full package patch that adds that .patch and also updates debian/patches/series. Use whichever one you find more handy.
Have a nice day, P.
diff -Naur ./sqlitebrowser-2.0.0~beta1+ds.1/debian/patches/replace-new-line-in-sqlstring.patch ./sqlitebrowser-2.0.0~beta1+ds.2/debian/patches/replace-new-line-in-sqlstring.patch --- ./sqlitebrowser-2.0.0~beta1+ds.1/debian/patches/replace-new-line-in-sqlstring.patch 1970-01-01 00:00:00.000000000 +0000 +++ ./sqlitebrowser-2.0.0~beta1+ds.2/debian/patches/replace-new-line-in-sqlstring.patch 2012-03-18 04:36:58.000000000 +0000 @@ -0,0 +1,26 @@ +Description: If the stored SQL statement contains new lines, +the table form shows the string centered and unreadable. This +patch replaces the new-lines with spaces, fixing that problem. +Author: Pablo Duboue <pablo.dub...@gmail.com> +Forwarded: no + +--- a/form1.cpp ++++ b/form1.cpp +@@ -195,7 +195,7 @@ + //tbitem->setOpen( TRUE ); + tbitem->setText( 0, it.data().getname() ); + tbitem->setText( 1, "table" ); +- tbitem->setText( 3, it.data().getsql() ); ++ tbitem->setText( 3, it.data().getsql().replace('\n', ' ') ); + fieldMap::Iterator fit; + fieldMap fmap = it.data().fldmap; + Q3ListViewItem * lastflditem = 0; +@@ -214,7 +214,7 @@ + Q3ListViewItem * item = new Q3ListViewItem( dblistView, lasttbitem ); + item->setText( 0, it2.data().getname()); + item->setText( 1, "index" ); +- item->setText( 3, it2.data().getsql() ); ++ item->setText( 3, it2.data().getsql().replace('\n', ' ') ); + lasttbitem = item ; + } + } diff -Naur ./sqlitebrowser-2.0.0~beta1+ds.1/debian/patches/series ./sqlitebrowser-2.0.0~beta1+ds.2/debian/patches/series --- ./sqlitebrowser-2.0.0~beta1+ds.1/debian/patches/series 2011-05-19 14:24:08.000000000 +0000 +++ ./sqlitebrowser-2.0.0~beta1+ds.2/debian/patches/series 2012-03-18 04:34:34.000000000 +0000 @@ -2,3 +2,4 @@ initialize-qstring-with-empty-string.patch ignore-canceled-import.patch use-qstring-fromlocal8bit-when-reading-argv.patch +replace-new-line-in-sqlstring.patch
Description: If the stored SQL statement contains new lines, the table form shows the string centered and unreadable. This patch replaces the new-lines with spaces, fixing that problem. Author: Pablo Duboue <pablo.dub...@gmail.com> Forwarded: no --- a/form1.cpp +++ b/form1.cpp @@ -195,7 +195,7 @@ //tbitem->setOpen( TRUE ); tbitem->setText( 0, it.data().getname() ); tbitem->setText( 1, "table" ); - tbitem->setText( 3, it.data().getsql() ); + tbitem->setText( 3, it.data().getsql().replace('\n', ' ') ); fieldMap::Iterator fit; fieldMap fmap = it.data().fldmap; Q3ListViewItem * lastflditem = 0; @@ -214,7 +214,7 @@ Q3ListViewItem * item = new Q3ListViewItem( dblistView, lasttbitem ); item->setText( 0, it2.data().getname()); item->setText( 1, "index" ); - item->setText( 3, it2.data().getsql() ); + item->setText( 3, it2.data().getsql().replace('\n', ' ') ); lasttbitem = item ; } }