Article editing fully implemented
[biaweb_qt.git] / article_dialog.py
index f8108cf..740692c 100644 (file)
@@ -113,11 +113,11 @@ class ArticleDialog (PyQt4.QtGui.QDialog, ui_article_dialog.Ui_ArticleDialog):
        def insert_list_items (self, numbered = False):
                if numbered:
                        title = "Numbered list"
-                       otag = "<ol>\n"
+                       otag = "\n<ol>\n"
                        ctag = "</ol>\n"
                else:
                        title = "Bulleted list"
-                       otag = "<ul>\n"
+                       otag = "\n<ul>\n"
                        ctag = "</ul>\n"
 
                itemlist = [ otag ]
@@ -228,6 +228,6 @@ class ArticleDialog (PyQt4.QtGui.QDialog, ui_article_dialog.Ui_ArticleDialog):
        # when break is clicked
        def onBreak (self):
                textcur = self.content.textCursor ()
-               breaktxt = "\n<br />\n"
+               breaktxt = "<br />\n"
                textcur.clearSelection ()
                textcur.insertText (breaktxt)