Quotation marks are appearing as &quot

E August 30, 2012

We've set up a macro to pre-format the code block macro to cpp. The problem is in our macro,

printf("Drive OEM is %s",oem_name);
is appearing as
printf("Drive OEM is %s",oem_name);

The macro is:

## @param Title:title=Title|type=string|desc=Title
 
<ac:macro ac:name="code">
 
<ac:parameter ac:name="language">cpp</ac:parameter>
 <ac:macro ac:name="code"><ac:parameter ac:name="title">$!paramTitle</ac:parameter>
<ac:parameter ac:name="language">cpp</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
<ac:plain-text-body><![CDATA[$body]]></ac:plain-text-body>
</ac:macro>

And set to Escaped.

Confluence 4.1.5

Help!

1 answer

1 accepted

0 votes
Answer accepted
Matt
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2012

What confluence did is the " signs has been escaped and converted to html entity. Try turning escape off. maybe macro from yor example has a parameter not to escape html chars.

E September 2, 2012

Thank you Matt

Stefan Mueller April 30, 2019

have you solved it?
I properly run now in the same problem, see my comments in Can I create macros within an HTML macro?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events