It's certainly a bit of a surprising feature. An additional method would save loads of code duplication? Also documenting the behaviour?
On Sun, Jun 18, 2017 at 10:11 PM, Andrew Williams <a...@andywilliams.me> wrote: > Marking up an input field is not the most common use-case - and is surely > inputted by the app rather than the user normally? > > I propose that ...text_get should return stripped markup and a new method > markup_text_get returns the current stuff. That would cater for both use > cases... > > Thanks, > Andrew > On Sun, 18 Jun 2017 at 22:00, Daniel Hirt <hirt.da...@gmail.com> wrote: > > > Hi Andrew, > > > > Markup uses tags like "<color=#fff> hello </color>". > > It is clear why it's essential to do "character escaping" like ">" > > instead > > of "<". Otherwise, if you feed "<" back to the entry widget, it will be > > misinterpreted as a tag element. > > As a side note, you can use "elm_entry_markup_to_utf8" helper to > > strip-down the formatting and "un-escape" the characters so all becomes > > a valid utf8 text. > > > > Hope that clears things up a bit. > > > > -- > > Danny (herdsman) Hirt > > > > On Sun, Jun 18, 2017 at 11:18 PM, Andrew Williams <a...@andywilliams.me> > > wrote: > > > > > Hi team, > > > > > > Netstar pointed out something to me today that I had completely missed > > for > > > ages - elm_entry assumes you are typing markup. Type "a>b" and text_get > > > will return "a>b" - what is the reason for this? It seems completely > > > crazy default behaviour. > > > Is there any reason we can't turn this off by default but provide the > > > markup filter in a way where it can be switched on as needed? > > > > > > Thanks, > > > Andy > > > -- > > > http://andywilliams.me > > > http://ajwillia.ms > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > enlightenment-devel mailing list > > > enlightenment-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > enlightenment-devel mailing list > > enlightenment-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > -- > http://andywilliams.me > http://ajwillia.ms > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel