extra margins by empty elements
Post here questions and problems related to editing and publishing DITA content.
-
- 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.
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;
}
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Re: extra margins by empty elements
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):
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
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
https://www.oxygenxml.com/doc/versions/ ... sions.html
Many regards,
Dan
-
- Posts: 11
- Joined: Mon Feb 18, 2019 10:07 am
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: extra margins by empty elements
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
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
oXygen XML Editor and Author Support
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service