Skip to content

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