Procházet zdrojové kódy

Insert annotation and history

Kandrashin Denis před 13 roky
rodič
revize
2b23f46c27
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      source/fb2head.cpp

+ 3 - 0
source/fb2head.cpp

@@ -205,6 +205,9 @@ Fb2HeadItem * Fb2HeadItem::append(const QString name)
     m_element.appendInside("<div></div>");
     QWebElement element = m_element.lastChild();
     element.addClass(name);
+    if (name == "annotation" || name == "history") {
+        element.appendInside("<p><br></p>");
+    }
     Fb2HeadItem * child = new Fb2HeadItem(element, this);
     m_list << child;
     return child;