fix parsing <br /> tags in markup_to_utf8
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 28 Nov 2011 03:09:24 +0000 (03:09 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 28 Nov 2011 03:09:24 +0000 (03:09 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65630 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_util.c

index 7264041..aea709c 100644 (file)
@@ -127,6 +127,9 @@ _elm_util_mkup_to_text(const char *mkup)
              if (tag_start)
                {
                   tag_end = p;
+                  /* <br /> */
+                  /*  ^^^   */
+                  if ((p - mkup > 1) && (p[-1] == '/')) p--;
                   s = p + 1;
                }
           }