Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to split a run and/or paragraph while preserving styling #492

Closed
lavens opened this issue Jun 13, 2023 · 3 comments
Closed

How to split a run and/or paragraph while preserving styling #492

lavens opened this issue Jun 13, 2023 · 3 comments

Comments

@lavens
Copy link

lavens commented Jun 13, 2023

Description

In the example below, I would like to replace the text {{table_content}} with a table, and split the run that contains the text into two new runs whilst preserving any styling (lines break, font style, etc) that was applied to the original run. Any suggestions on how this can be done? Thanks!

Example Template Document

Depending on the laws in your state, the person who writes a real estate sales contract can be the buyer or the seller.
The first step of the legal process of buying or selling a home involves creating a real estate purchase agreement.
The purchase agreement {{table_content}} outlines the terms of the sale but does not transfer the property itself — more steps come afterward to finalize a legal property transfer.

Expected Behavior

Depending on the laws in your state, the person who writes a real estate sales contract can be the buyer or the seller.
The first step of the legal process of buying or selling a home involves creating a real estate purchase agreement.
The purchase agreement

Header Header Header Header
Cell Cell Cell Cell
Cell Cell Cell Cell

outlines the terms of the sale but does not transfer the property itself — more steps come afterward to finalize a legal property transfer.

@github-actions
Copy link

Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized,
other issues go into our backlog where they are assessed and fitted into the roadmap when suitable.
If you need to get this done, consider buying a license which also enables you to use it in your commercial products.
More information can be found on https://unidoc.io/

@joinimran
Copy link

Hi @lavens - Thank you for reporting this issue. Our development team is looking into this. We are expecting the fix as soon as possible and will share the details via internal support channel.

Thanks.
Imran.

@sampila
Copy link
Collaborator

sampila commented Oct 6, 2023

Hi @lavens,

Starting from version https://github.com/unidoc/unioffice/releases/tag/v1.26.0, we added the function for "SetProperties" where it can be used to preserving the run styles.

Best regards,
Alip

@sampila sampila closed this as completed Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants