RML not formatting, printing <b> </b> instead

Alejandro Díaz <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <CAC8dKyGGHfzPcfRf71MgovbK+fhoP0K_dAGELyaOFEqep_MbBw@mail.gmail.com>
Hello:




I am using this in order to create a item list to be printed on an rml
report:


#In the python code

for item in items:
  if item['condition']: # This condition is defined in the code
    name = '<b>' + item['name'] + '</b>'
  else: name = item['name']




The coulde will give me a main items wich are composed with a list of items
(something like the BoM).


Then in the rml i am using:

<para style="P5"> Items: [[ d["item"] ]]</para>


This will me print a report with a list of the items contained in the item,
and depending if the item in the list accomplish the 'condition' this
should use the format (<b> </b>).


The target should be: Items: Item1 Item2 *Item3* Item4

I get instead Items: Item1 Item2 <b>Item3</b> Item4


Could someone tell me what I am doing wrong? I tried the escape codes &lt;
and &gt; on the code but I get &lt;b&gt;Item3&lt;/b&gt;

Regards!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.