27a28,32 > > The report should produce at least the field {{{ticket}}} containing > the ticket ID. If it also contains a {{{text}}} field a different > formatting will be used showing that text after the ticket ID > hyperlink. 59a65 > items_have_text = False 97a104,105 > # Get the index of the fields we're interested in > # The fields are 'ticket' (the ID) and optionally 'text'. 99a108,111 > if descriptions.count('text'): > text = descriptions.index('text') > items_have_text = True > # Now get the values from each row 101c113,116 < items.append(row[idx]) --- > if items_have_text: > items.append("#%d: %s"%(row[idx], row[text])) > else: > items.append("#%d"%row[idx]) 112,113c127,133 < from trac.wiki.formatter import wiki_to_oneliner < html = wiki_to_oneliner(string.join(["#%d" % c for c in items], ", "), --- > from trac.wiki.formatter import wiki_to_oneliner, wiki_to_html > if items_have_text: > html = wiki_to_html(string.join(["%s" % str(c) for c in items], > "[[BR]]"), > env, env.get_db_cnx()) > else: > html = wiki_to_oneliner(string.join(["%s" % str(c) for c in items], ", "), 118c138,139 < html = wiki_to_oneliner(string.join(["#%d" % c for c in items], ", "), --- > html = wiki_to_oneliner(string.join(["%s" % str(c) for c in items], > sep), 127,128c148 < return '
' % \ --- > return '' % \