Next / Previous / Contents / Shipman's homepage

10.8. Htmler._italEnd()

Generates the correct markup to start italics, depending on the cssClass argument.

xnomo3.py
# - - -   H t m l e r . _ i t a l E n d

    def _italEnd(self, cssClass):
        '''Emit start-italic markup.
        '''
        if cssClass is None:
            result = "</i>"
        else:
            result = "</span>"
        return result