Page 1 of 1

extra margins by empty elements

Posted: Thu Mar 14, 2019 2:57 pm
by gloryman21
Hello!
I'm using PDF CSS DITA (WYSIWYG) transformation.
Empty elements context, prereq, result and postreq add top and bottom extra margin.
How fix it? My css dosen't work.

Code: Select all

*[class~="task/prereq"]:empty {
display: none !important;
}
*[class~="task/context"]:empty {
display: none !important;
}
*[class~="task/result"]:empty {
display: none !important;
}
*[class~="task/postreq"]:empty {
display: none !important;
}

Re: extra margins by empty elements

Posted: Fri Mar 15, 2019 12:21 pm
by Dan
Hello,

Yes, this is a bug, i will record it.

The IDs are generating anchor elements that separate the adjacent margins of the siblings. For instance, the empty context element will generate an inline that inhibits the automatic collapse of the margins of the prereq (the element before) and steps (the element after):

Code: Select all


prereq
context(invisible, but has an ID, generates an invisible inline)
steps
As a workaround, remove the ID attributes from these empty elements, or extend your publishing template with XSLT to do this automatically.
https://www.oxygenxml.com/doc/versions/ ... sions.html

Many regards,
Dan

Re: extra margins by empty elements

Posted: Fri Mar 15, 2019 1:01 pm
by gloryman21
Thank You, Dan!

Re: extra margins by empty elements

Posted: Mon Mar 18, 2019 5:01 pm
by Costin
Hi,

I want to inform you that tomorrow we will make available a nightly build that includes the fix.
Please contact us again tomorrow on our support email (support@oxygenxml.com) and request access to the build, if you are willing to test.

Please note that the nightly build is meant for testing and evaluation purposes only, it should not be used for production work, as it is not an official stable release.
Also, you should keep it confidential and use it at your own discretion for the purpose of testing specifically the features / improvements in discussion.

Best Regards,
Costin