You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b982713
Browse filesBrowse the repository at this point in the historyBrowse files
Make TextRun#text= work on runs with several w:t (#197)
TextRun#text= only wrote when the run had exactly one w:t (or none), so
on runs written by LibreOffice/textutil ("text<w:br/>text") and on
hyperlinks made of several runs it silently did nothing. That broke
Paragraph#text= on such single-run paragraphs and bookmark insertion.
text= now replaces the text from the first through the last w:t: the
content goes into the first w:t, and the other w:t and the line breaks
and tabs between them are removed. Breaks outside that range, such as a
trailing page break, and the run properties are kept. A run with a
single w:t behaves as before.
Bookmark#insert_text_before/after no longer go through text=, which
would now drop the adjacent run's breaks. They write into the w:t right
next to the bookmark instead (the end of the preceding run or the start
of the following one), adding a new w:t when the run ends or starts
with a break or tab. This also fixes text being inserted on the wrong
side of such a break.
Move remove_separators_between into Container so Paragraph and TextRun
share it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments