I am trying to write two functions, one to convert plain text to wx's rich text XML format; and the other to convert the other way. I don't need these functions to round-trip. I have a wxml_for_text(text) -> wxml function that works fine (although it seems verbose to me). But I cannot get the complementary text_for_wxml(wxml) -> text function to work.
Could anyone show me how to get text_for_wxml working? And ideally, show me how to shorten & simplify both functions if that's possible?
I've attached t.py which runs with Python 3 and wxPython 4b2. For me the output is:
I would have expected 'B' and 'C' to have plain text not empty strings.
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.