infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Harner (JIRA)" <>
Subject [jira] [Commented] (INFRA-15986) Confluence "since" and "deprecated" macros give "Unknown macro: {div}" error
Date Sat, 24 Feb 2018 22:40:00 GMT


Bob Harner commented on INFRA-15986:

In case you're curious, the way to detect whether the body is empty is to check its length
being less than 1 char. Confluence inserts a non-breaking space character instead of allowing
the body to be truly empty. Since a single-character body is never going to be useful in real-world
use of these particular user macros, we are able to safely omit the body if it is 1 character
or less.

> Confluence "since" and "deprecated" macros give "Unknown macro: {div}" error
> ----------------------------------------------------------------------------
>                 Key: INFRA-15986
>                 URL:
>             Project: Infrastructure
>          Issue Type: Bug
>          Components: Confluence
>            Reporter: Bob Harner
>            Assignee: Gavin
>            Priority: Minor
>         Attachments: Screenshot-2018-2-24 Test of Macros.png, deprecated-macro.txt, since-macro.txt
> For a long time now (maybe since the last major Confluence upgrade), the "since" and
"deprecated" macros (I think these are so-called "user macros") have been generating unsightly
"Unknown macro: {div}" errors on the wiki pages (and in exported static site pages).
> You can see the problem in the following page:
> (which exports to )
> Apparently those macros use the undefined {div} macro internally. Maybe you could edit
those "since" and "deprecated" macros to use the {align} macro instead?  I think that's under
Confluence's General Configuration > User Macros
> Docs:

This message was sent by Atlassian JIRA

View raw message