×

You're using an outdated browser

For a better experience, keep your browser up to date. Check here for the latest version.

Manual

How can I avoid blank paragraphs

Thomas Rough

Thomas Rough Last update: Jul 24, 2018

Questions

Some macros do not produce any output (like the Scroll Index Term macro), but when placed on a single line, Confluence will wrap them with a paragraph, which leads to empty paragraphs. How can I avoid those blank paragraphs?

Answer

To avoid blank paragraphs you have to create a user macro to enclose the affected macros.

Before you begin: Before you can create a user macro, you must log in with Confluence Admin permissions.

To create a index-term-wrapper macro:

  1. Click the cog icon at top right of the screen and select Confluence Admin.
    The Administration Console is displayed.
  2. In the Configuration section, click User Macros
  3. Create a new user macro like this:
  4. Replace the text in the field Template with the following:

    ## Macro title: Index Term Wrapper
    ## Macro has a body: Y
    ## Body processing: Rendered
    ## Output: Selected output option
    ## @noparams
    $body
  5. Click Save.The macro is created and can now be used to wrap all the index term macros.
2x$versions.current.name
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: click here.
Ok