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
TextRun#text= on a run without w:t leaves #text stale #190
When a run has no w:t, TextRun#text= creates one and writes the content into the XML. But @text_nodes isn't refreshed, so #text (and #to_s, #to_html) still returns "".
Runs created through TextRun.create_with / create_within start out like this, so anything that sets their text and then reads the same object back sees the stale value.
Expected:#text returns "new". For example, text= could append the new Elements::Text to @text_nodes before reset_text.
Found while splitting the specs into per-class unit specs (#188).
Activity