Skip to content

Commit 4166c3c

Browse files
authored
refactor: move the insert and paragraph-split methods into a RevisionManager mixin (ROADMAP.md #73) (#92)
* refactor: move the insert and paragraph-split methods into a RevisionManager mixin (ROADMAP.md #73) * test: cover the insert edge cases moved in ROADMAP.md #73 step 7
1 parent a213884 commit 4166c3c

4 files changed

Lines changed: 493 additions & 438 deletions

File tree

‎docx_editor/track_changes/base.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,9 @@ def _ins_identity_attrs(self, ins_elem) -> str:
136136

137137
def _adopt_split_tail(self, original_ins, new_nodes) -> None:
138138
raise NotImplementedError
139+
140+
def _rewrite_insert_at(self, paragraph, text_map: TextMap, char_pos: int, text: str) -> None:
141+
raise NotImplementedError
142+
143+
def _split_foreign_ins_at(self, edge_node, offset: int) -> Element | None:
144+
raise NotImplementedError

0 commit comments

Comments
 (0)