Open lucaa opened 1 month ago
proper spacing from surrounding elements - this is also an issue for the view mode, the spacing is too small compared to a spacing between paragraphs
For this, note that there is a logic in the XWiki skin / content for spacing elements (we are adding margin bottom to all elements, so that the next element is spaced properly). Ideally, this macro (and all macros) should follow that spacing. Also ideally, we shouldn't hardcode the rule of the spacing in the macro code.
Now, I don't know whether there is any "standard" element that could be re-used to obtain the effect with the standard CSS - apparently divs don't have it by default, which is normal. To compare this with other macros that generate divs, to see what is the rule that they use..
tested with Pro macros 1.19.9 on XWiki 16.4.1
How to reproduce:
Actual result:
Expected result: