Evas textblock: Fixed   handling.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 20 Jul 2011 14:13:33 +0000 (14:13 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 20 Jul 2011 14:13:33 +0000 (14:13 +0000)
It now translates to a real nbsp, and not just a space.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61527 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index a5b3fe3..7ac9103 100644 (file)
@@ -701,13 +701,12 @@ _line_free(Evas_Object_Textblock_Line *ln)
  */
 static const char escape_strings[] =
 /* most common escaped stuff */
-" \0"          "\x20\0" /* NOTE: this here to avoid escaping to &nbsp */
-"&nbsp;\0"     "\x20\0" /* NOTE: we allow nsbp's to break as we map early - maybe map to ascii 0x01 and then make the rendering code think 0x01 -> 0x20 */
 "&quot;\0"     "\x22\0"
 "&amp;\0"      "\x26\0"
 "&lt;\0"       "\x3c\0"
 "&gt;\0"       "\x3e\0"
 /* all the rest */
+"&nbsp;\0"     "\xc2\xa0\0"
 "&iexcl;\0"    "\xc2\xa1\0"
 "&cent;\0"     "\xc2\xa2\0"
 "&pound;\0"    "\xc2\xa3\0"