forked from enlightenment/efl
Elm: Update the lib to use the new self-closing textblock tags.
SVN revision: 66035
This commit is contained in:
parent
abab649687
commit
f38430a2d8
|
@ -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" },
|
||||
{ ">", ">" },
|
||||
{ "<", "<" },
|
||||
{ "&", "&" },
|
||||
|
|
|
@ -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, "<", &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, "&", &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];
|
||||
|
|
Loading…
Reference in New Issue