]> git.neil.brown.name Git - edlib.git/commit
Change doc:render-line to fail at end-of-file
authorNeilBrown <neil@brown.name>
Sun, 10 May 2020 10:49:33 +0000 (20:49 +1000)
committerNeilBrown <neil@brown.name>
Sun, 10 May 2020 10:49:33 +0000 (20:49 +1000)
commit59448060dc13e5b41c1a854828e60510cceb335d
tree9e4e8547c82b1ed778e507535dc2c7b74653c0c2
parent09bd5c22d67187ba358db364f1b308bdc77f5798
Change doc:render-line to fail at end-of-file

Rather than calling the callback with no string, avoid the callback and
return an error when doc:render-line cannot find another line to render.

This has much the same effect for render-lines, and in other cases is
easier to work with.

Signed-off-by: NeilBrown <neil@brown.name>
lib-markup.c
python/render-present.py
render-format.c
render-hex.c