fix textblock parsing of tags with stupid trailing spaces like <br /> which people use for some stupid reason

SVN revision: 66444
This commit is contained in:
Mike Blumenkrantz 2011-12-22 03:32:23 +00:00
parent 896c628f82
commit 4dde203f06
1 changed files with 5 additions and 1 deletions

View File

@ -5173,7 +5173,11 @@ evas_textblock_text_markup_to_utf8(const Evas_Object *obj, const char *text)
tag_start++; /* Skip the < */
tag_end--; /* Skip the > */
if ((tag_end > tag_start) && (*(tag_end - 1) == '/'))
tag_end --; /* Skip the terminating '/' */
{
tag_end --; /* Skip the terminating '/' */
while (*(tag_end - 1) == ' ')
tag_end--; /* skip trailing ' ' */
}
ttag_len = tag_end - tag_start;