Skip to content

Commit

Permalink
Fixed an error processing text boxes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbejar committed Oct 24, 2023
1 parent b16e98e commit 7dcbb4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion odpmkd/odpmkd.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ def handleVerbatimTextNode(self, node):
else:
self.handleVerbatimTextNode(node.childNodes[0])
else:
t = ""
for n in node.childNodes:
if n.nodeName == 'text:span':
t = ""
for nn in n.childNodes:
_t = self.getTextFromNode(nn)
if _t is not None:
Expand All @@ -215,6 +215,7 @@ def _handleListNodeRec(node, depth):

def handleTextBox(self, node):
self.currentSlide.text += "\n```\n"
# Each child node will typically be a text:p, so a \n is a good choice to separate them
for n in node.childNodes:
self.handleVerbatimTextNode(n)
if n != node.childNodes[-1]:
Expand Down

0 comments on commit 7dcbb4c

Please sign in to comment.