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

Account for pre when adding text #79

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

robinchow
Copy link

run.add_text and assigning to run.text have different outcomes. The latter translates the incoming text to insert docx elements such as tabs and line breaks.

ref: https://python-docx.readthedocs.io/en/latest/api/text.html#docx.text.run.Run.text

run.add_text and assigning to run.text have different outcomes.
The latter translates the incoming text to insert docx elements
such as tabs and line breaks.

ref: https://python-docx.readthedocs.io/en/latest/api/text.html#docx.text.run.Run.text
@kbattersby
Copy link
Contributor

Hi @robinchow

Before I can approve the PR, please address these items:

  • add a test for the code change
  • change the commit message and PR title to be "Account for..." (no ing at the end of the word)

@robinchow robinchow changed the title Accounting for pre when adding text Account for pre when adding text Jan 16, 2024
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

Successfully merging this pull request may close these issues.

2 participants