'Creates a <text:s> element for the current spaceCount.
Side effect: sets spaceCount back to zero'

def _emitSpaces(self, odfElement):

    if (self.spaceCount > 0):
        spaceElement = S(c=self.spaceCount)
        odfElement.addElement(spaceElement)
    self.spaceCount = 0
