Next / Previous / Contents / Shipman's homepage

10.7. Htmler._italStart()

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

xnomo3.py
# - - -   H t m l e r . _ i t a l S t a r t

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