On 2016-12-11 05:29, Khurram Shahzad wrote: > Dear All, > > I have used a richtext widget for a text field in a module. Now when we > display this field in the report it displays the HTML markup. > <h2>Min2GREAT</h2> > > Even after reading Rendering Markup > <https://groups.google.com/forum/#!topic/tryton/EoV3SoDxAZs> and placing > the value in "content" placeholder the result remained same. > > Then I found pyPandoc <https://pypi.python.org/pypi/pypandoc> , and using > it I transformed the HTML markup to following ODT markup: > <text:h text:style-name="Heading_20_2" > text:outline-level="2">MIn2GREAT</text:h> > > But, using following content placeholder: > > content text:p="test.comment" > > I still get the markup and it is not rendered by ODT. > > It seems as if the content tag simple renders the TEXT and does not > consider it Markup. How can I make "content" tag consider the 'Text' as > markup? or Please tell any other tag which does this!
It seems nobody has yet worked on it: https://bugs.tryton.org/issue2068 About the "content" directive, I do not think you can include other tags in the text:p. So probably it will be better to use "replace" directive. Any way, if you succeed, please update the issue with your results. -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20161211171730.GC62485%40tetsuo.
