change a display of googleTranslator
authorJakub Jaszczynski <j.j.jaszczynski@gmail.com>
Thu, 26 Aug 2010 09:43:26 +0000 (11:43 +0200)
committerJakub Jaszczynski <j.j.jaszczynski@gmail.com>
Thu, 26 Aug 2010 09:43:26 +0000 (11:43 +0200)
trunk/src/base/xsl.xsl
trunk/src/plugins/google/src/GooglePlugin.cpp

index 1fefc09..f8b54c4 100644 (file)
        <xsl:variable name="atr" select="@c"/>
        <font color="{$atr}"> <xsl:apply-templates/></font>
 </xsl:template>
+
+<xsl:template match="br">
+       <br/>
+</xsl:template>
+
 <!--
 <xsl:template match="table">
        <table>
index e7912af..c0a8277 100644 (file)
@@ -253,6 +253,7 @@ QString GooglePlugin::jsonParse(QString result) {
     }
     result=translation;
     for(int i=0; i<words.size();i++) {
+        tesult+="<br/>";
         result+="<pos>"+partOfSpeach.at(i)+"</pos>:";
         for(int j=0; j<words.at(i)->size();j++)
             result+=words.at(i)->at(j)+", ";