Four fixes from user reports: undo works again, inserted text makes its own
paragraph, tracked changes no longer read as duplicated text, and tables
with merged cells are read in full.
Fixed
doc_undoanddoc_redodid nothing (GitHub #47). Like every write,
they ran inside an undo context of their own, and LibreOffice refuses to
undo or redo while one is open: right after any Nelson edit,doc_undo
answeredundone: 0, can_undo: falseand left the document as it was. Each
Nelson call is now undone, and redone, in one step, as documented.text_insertjoined its text to the target paragraph (GitHub #46). With
positionbeforeorafter, the text went into the target paragraph
behind a line break, so an entry inserted into a numbered list shared the
next entry's number. It now makes a paragraph of its own, andstyle
applies to that paragraph.text_readran deleted and inserted text together (GitHub #48). Change
recording keeps deleted text in the paragraph, so a tracked replace of
"Beta" by "Delta" read back asDeltaBeta paragraph., which an agent took
for duplicated text.text_readnow reads the text as if the changes were
accepted, and flags those paragraphs withtracked_changes: true.table_listdropped cells of Writer tables with merged cells (GitHub
#45). It counted columns withgetColumns(), which answers 1 for a table
whose first row is one merged cell, so every cell right of the first
column was left out, without a word. Tables are now read by cell name:
rows may differ in length, and such a table is flaggedirregularwith
each cell's name.table_write_rowwrites the cells the row really has
and says when values were left over; past 26 columns it addressed the
wrong cells, as Writer names column 27a, notAA.
Added
- Setting
writer.tracked_changes_view(Options > Nelson > Writer): how
text_readshows tracked changes.accepted(default) as if they were
accepted,originalas before them,markedwith insertions in<ins>
and deletions in<del>.