Elm: Update the lib to use the new self-closing textblock tags.

SVN revision: 66035
This commit is contained in:
Tom Hacohen 2011-12-08 15:13:14 +00:00
parent abab649687
commit f38430a2d8
2 changed files with 6 additions and 6 deletions

View File

@ -154,9 +154,9 @@ static Eina_Bool pasteimage_append(char *file, Evas_Object *entry);
/* Optimisation: Turn this into a 256 byte table:
* then can lookup in one index, not N checks */
static const Escape escapes[] = {
{ "<ps>", _PARAGRAPH_SEPARATOR },
{ "<br>", "\n" },
{ "<\t>", "\t" },
{ "<ps/>", _PARAGRAPH_SEPARATOR },
{ "<br/>", "\n" },
{ "<\t/>", "\t" },
{ "&gt;", ">" },
{ "&lt;", "<" },
{ "&amp;", "&" },

View File

@ -177,9 +177,9 @@ _elm_util_text_to_mkup(const char *text)
pos2 = evas_string_char_next_get((char *)(text), pos2, &ch);
if ((ch <= 0) || (pos2 <= 0)) break;
if (ch == '\n')
str = _str_append(str, "<br>", &str_len, &str_alloc);
str = _str_append(str, "<br/>", &str_len, &str_alloc);
else if (ch == '\t')
str = _str_append(str, "<\t>", &str_len, &str_alloc);
str = _str_append(str, "<\t/>", &str_len, &str_alloc);
else if (ch == '<')
str = _str_append(str, "&lt;", &str_len, &str_alloc);
else if (ch == '>')
@ -187,7 +187,7 @@ _elm_util_text_to_mkup(const char *text)
else if (ch == '&')
str = _str_append(str, "&amp;", &str_len, &str_alloc);
else if (ch == 0x2029) /* PS */
str = _str_append(str, "<ps>", &str_len, &str_alloc);
str = _str_append(str, "<ps/>", &str_len, &str_alloc);
else
{
char tstr[16];