hermet pushed a commit to branch efl-1.10.

http://git.enlightenment.org/core/efl.git/commit/?id=58723c7202912dfe709d0d2142ade12c5a343ab9

commit 58723c7202912dfe709d0d2142ade12c5a343ab9
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Thu Jun 26 19:34:35 2014 +0900

    edje: textblock style loading changed
    
    Summary:
    Keeping "font=", "font_size=" and "text_class" in tag->value fixes
    style loading issues (after saving edj file with edje_edit_save method).
    
    Reviewers: cedric, raster, seoz, Hermet, tasn
    
    CC: reutskiy.v.v, cedric
    
    Differential Revision: https://phab.enlightenment.org/D940
    
    @fix
---
 src/lib/edje/edje_textblock_styles.c | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/src/lib/edje/edje_textblock_styles.c 
b/src/lib/edje/edje_textblock_styles.c
index d174e4d..5d423f7 100644
--- a/src/lib/edje/edje_textblock_styles.c
+++ b/src/lib/edje/edje_textblock_styles.c
@@ -125,16 +125,13 @@ _edje_format_reparse(Edje_File *edf, const char *str, 
Edje_Style_Tag **tag_ret)
                         }
                    }
               }
-            else /* Otherwise add to tag buffer */
-              {
-                 s2 = eina_str_escape(item);
-                 if (s2)
-                   {
-                      if (eina_strbuf_length_get(txt)) eina_strbuf_append(txt, 
" ");
-                      eina_strbuf_append(txt, s2);
-                      free(s2);
-                   }
-              }
+             s2 = eina_str_escape(item);
+             if (s2)
+               {
+                  if (eina_strbuf_length_get(txt)) eina_strbuf_append(txt, " 
");
+                  eina_strbuf_append(txt, s2);
+                  free(s2);
+               }
             free(key);
             free(val);
          }

-- 


Reply via email to