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

Create richtext from commandline execution #531

Open
effem opened this issue Mar 15, 2024 · 0 comments
Open

Create richtext from commandline execution #531

effem opened this issue Mar 15, 2024 · 0 comments

Comments

@effem
Copy link

effem commented Mar 15, 2024

Describe your problem

I'm calling docxtpl from another programm (as described here https://docxtpl.readthedocs.io/en/latest/#command-line-execution) and try to pass some variables that contain newlines but defining the variable in the word template is not sufficient to turn it into rich text.

Provide a test case

Example JSON:

{
  "text": "This is a text\n\n with newlines!"
}

Example code in the docx:
grafik

Is there a possibility to create rich text without creating a rich text object in python and passing it as context?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant