Subject: [Fenics] raw doc strings + SWIG

From: "Garth N. Wells" <[email-masked]>
Date: Fri, 15 Apr 2011 17:22:11 +0100

SWIG turns code like

    %feature("docstring")  dolfin::PeriodicBC "This class . . . "

into

    class PeriodicBC(BoundaryCondition):
        """
        This cla . . .
        """

but we need

    class PeriodicBC(BoundaryCondition):
        r"""
        This cla . . .
        """

(note the 'r'). The 'r' is needed to stop math (Latex) markup getting
screwed up since the backslashes lead to problems. Does anyone know how
to make SWIG insert the 'r'?

Garth