fenics team mailing list archive
-
fenics team
-
Mailing list archive
-
Message #01428
raw doc strings + SWIG
-
To:
FEniCS Mailing List <fenics@xxxxxxxxxxxxxxxxxxx>
-
From:
"Garth N. Wells" <gnw20@xxxxxxxxx>
-
Date:
Fri, 15 Apr 2011 17:22:11 +0100
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110411 Thunderbird/3.1.9
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