spaces are getting trimmed from content
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 93
- Joined: Mon Aug 08, 2022 2:32 pm
spaces are getting trimmed from content
Post by SmitaPatil »
Hi Team,
when I am inserting fragment using insertXMLFragmentSchemaAware method, space present in text content is getting trimmed.
Can you please tell if there is any to avoid it while using this method or any other method which will work better to insert string fragment in document.
Thanks & Regards,
Smita
when I am inserting fragment using insertXMLFragmentSchemaAware method, space present in text content is getting trimmed.
Can you please tell if there is any to avoid it while using this method or any other method which will work better to insert string fragment in document.
Thanks & Regards,
Smita
-
- Site Admin
- Posts: 172
- Joined: Tue Mar 20, 2018 5:28 pm
Re: spaces are getting trimmed from content
Post by Bogdan Dumitru »
Hi Smita,
Your spaces are inside the elements within your fragment, or around them? Could you please share the fragment?
If the spaces are inside an element, the element has the "white-space: pre" CSS property specified? Note that spaces are preserved only if the "white-space" property says so.
Your spaces are inside the elements within your fragment, or around them? Could you please share the fragment?
If the spaces are inside an element, the element has the "white-space: pre" CSS property specified? Note that spaces are preserved only if the "white-space" property says so.
Bogdan Dumitru
http://www.oxygenxml.com
http://www.oxygenxml.com
-
- Site Admin
- Posts: 172
- Joined: Tue Mar 20, 2018 5:28 pm
Re: spaces are getting trimmed from content
Post by Bogdan Dumitru »
Hi again,
Do you encounter this problem if you insert the fragment manually in the text page (Edit as XML) and then switch to author mode? If after the switch you don't see whitespaces preserved inside the element, then check that you have the "white-space: pre" specified in the framework's CSS files.
Do you encounter this problem if you insert the fragment manually in the text page (Edit as XML) and then switch to author mode? If after the switch you don't see whitespaces preserved inside the element, then check that you have the "white-space: pre" specified in the framework's CSS files.
Bogdan Dumitru
http://www.oxygenxml.com
http://www.oxygenxml.com
-
- Posts: 93
- Joined: Mon Aug 08, 2022 2:32 pm
Re: spaces are getting trimmed from content
Post by SmitaPatil »
Hi Bogdan,
I have tried by doing edit xml and adding following xml fragment
but in author mode it is showing as below only one one white space and others are getting trimmed :
Please let me know if you need any other information.
Thanks & Regards,
Smita
I have tried by doing edit xml and adding following xml fragment
Code: Select all
<tgroup cols="3">
<colspec colname="col1"/>
<colspec colname="col2"/>
<colspec colname="col3"/>
<tbody>
<row>
<entry>
<para>
<paratext>check for space </paratext>
</para>
</entry>
<entry/>
<entry/>
</row>
<row>
<entry/>
<entry/>
<entry/>
</row>
</tbody>
</tgroup>
image.png
and for that css property for text inside entry is as below:
image.png
We don't want to loose any space from content while inserting fragment.Please let me know if you need any other information.
Thanks & Regards,
Smita
You do not have the required permissions to view the files attached to this post.
Last edited by SmitaPatil on Fri Dec 23, 2022 12:17 pm, edited 1 time in total.
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: spaces are getting trimmed from content
Hi,
It seems that there are some missing images in your message. Can you please add them so that we better understand your use case?
Best Regards,
Mihaela
It seems that there are some missing images in your message. Can you please add them so that we better understand your use case?
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
-
- Posts: 93
- Joined: Mon Aug 08, 2022 2:32 pm
Re: spaces are getting trimmed from content
Post by SmitaPatil »
Hi Mihaela,
Sorry I haven't seen it properly.
I have updated image in last post.
Thanks & Regards,
Smita
Sorry I haven't seen it properly.
I have updated image in last post.
Thanks & Regards,
Smita
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: spaces are getting trimmed from content
Post by cristi_talau »
You need to add the "white-space: pre" property in the CSS of your framework. The rule should be:
The rule that you see in the browser applied to the rendering of the XML text node that is a child of the "paratext" element.
Code: Select all
paratext {
white-space: pre;
}
-
- Posts: 93
- Joined: Mon Aug 08, 2022 2:32 pm
Re: spaces are getting trimmed from content
Post by SmitaPatil »
Hi,
Thank you!
It helped to resolved the issue.
Thanks,
Smita
Thank you!
It helped to resolved the issue.
Thanks,
Smita
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