Modify ↓
Opened 8 months ago
Last modified 7 months ago
#14339 new defect
HTML not rendering correctly
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | WikiTableMacro |
Severity: | normal | Keywords: | |
Cc: | mayurlogan@… | Trac Release: | 1.6 |
Description
See report on trac-users.
Attachments (0)
Note: See
TracTickets for help on using
tickets.
SQLScalar
macro always renders a scalar value from the given query as plain text since [14524] because the macro shouldn't render raw html fragment. However,SQLTable
macro renders rows from the given query as wiki text, inconsistently.After the following patch,
SQLScalar
macro renders a scalar value as wiki text and you can link using such a querySELECT '[https://example.org/ '||COUNT(id)||']'
in the macro.wikitable/scalar.py
system_messageelse:value = rows[0][0] if len(rows) else "(NULL)"