extra margins by empty elements

Post here questions and problems related to editing and publishing DITA content.
gloryman21
Posts: 11
Joined: Mon Feb 18, 2019 10:07 am

extra margins by empty elements

Post 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;
}
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: extra margins by empty elements

Post 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
gloryman21
Posts: 11
Joined: Mon Feb 18, 2019 10:07 am

Re: extra margins by empty elements

Post by gloryman21 »

Thank You, Dan!
Costin
Posts: 828
Joined: Mon Dec 05, 2011 6:04 pm

Re: extra margins by empty elements

Post 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
Costin Sandoi
oXygen XML Editor and Author Support
Post Reply