]> git.neil.brown.name Git - edlib.git/commit
python: handle unterminated strings from doc-text
authorNeilBrown <neil@brown.name>
Sat, 27 May 2023 00:37:51 +0000 (10:37 +1000)
committerNeilBrown <neil@brown.name>
Sat, 27 May 2023 00:37:51 +0000 (10:37 +1000)
commitc5e82025ec916a538b8e6a9a19ed8ae9ab6c0b04
tree913b871a3977dfb93404dad7332f8f48fa22c528
parentb68700280ccbfdc768603d80c1ba34b46c065181
python: handle unterminated strings from doc-text

doc-text sends an unterminated string to the callback for doc:content.
Python doesn't handle this well.

So create a kludge:  If the key ends " unterminated", then use ->num2 as
a max length of ->str

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
doc-text.c
lang-python.c