Evas textblock: Fixed a bug with font_weight and font_style.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 28 Jul 2011 12:59:36 +0000 (12:59 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 28 Jul 2011 12:59:36 +0000 (12:59 +0000)
Forgot to add a space when I add a new style when there wasn't one before.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61855 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 779c572..d95135f 100644 (file)
@@ -1199,7 +1199,8 @@ _format_command_parse_font_weight_style(Evas_Object_Textblock_Format *fmt,
           }
         else
           {
-             found_start = style + 7;
+             found_start = style + 7; /* + 7 for :style= */
+             eina_strbuf_insert_char(buf, ' ', found_start - fmt->font.name);
           }
         eina_strbuf_insert(buf, param, found_start - fmt->font.name);
         if (fmt->font.name) eina_stringshare_del(fmt->font.name);