Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

NoPrint Macro not working after upgrade

Vic June 14, 2018

I'm using this NoPrint Macro for over a year now and it worked (which means the content inside this Makro is not getting exported to PDF) until I today upgraded my server from 6.7 to 6.9.

This is my Macro:
## @noparams
<div class="noprint">$body</div>

Any suggestions?

1 answer

0 votes
Tobias Schramm January 30, 2019

Hello,

we have the same problem.

Before we run the upgrade to server version 6.13.0 we could use the macro perfectly.

But now the content in the body of the NoPrint macro is no longer hidden in PDF exports.

The macro is getting used in many articles all over in our wiki and we uese it espcecially in documents to save important notes.

Please do a bug fix.

Thanks!

Todor Plachkov January 31, 2019

Hi,

I've did it with the following macro:

Macro Body Processing: Rendered

Template:

## Macro title: No Print Area
## Macro has a body: Y
##
## Developed by: xxxx
## Date created: xxxx

## @noparams
<style type="text/css" media="print">
.dontprint
{ display: none; }
</style>

<div class="dontprint"> $body</div>

Tobias Schramm May 13, 2020

Hello Todor,

Yes, that work-around solution does work, to hide content that is embedded in the macro.

But there is an unpleasant side effect:

The area of ​​the <DIV> </DIV> is still reserved. Therefore, an empty section appears on the page that is as large as the embedded content.

Do you think, if that could be fixed by changing the <DIV></DIV> into a <SPAN></SPAN> tag?

Greetings.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events