position the caret before the info box (using the red newline button of the editor to create a new line)
insert a view-file macro, either using the quick actions menu or using the insert macro menu
select or not a file to view, depending on how the macro was added it may or may not be asked for
save page
Expected result:
the content of the page is made of 2 macro calls, a view-file macro call and the info macro
Actual result
there are the 2 macro calls in the page content, but there is also some content as wiki syntax between the 2, which represents the display of the view file macro:
Note: it happens the same if I fill in an actual file in the view-file macro.
Reproduced on Chrome, on XWiki 16.4.1, may be a new issue related to the version of XWiki.
How to reproduce:
Expected result:
Actual result
(% class="box errormessage" %) ((( rendering.macro.viewFile.namerequired" )))
{{html}} <a href="/xwiki/bin/download/Sandbox/TestPage1/filename" download="download" class="button button-primary" title="View file content"
filename {{/html}}
{{info}} test {{/info}}