Previously SWIG looked at the indentation of the first line and removed that many characters from each subsequent line, regardless of what those characters were. This was made worse because SWIG's preprocessor removes any whitespace before a '#'. Fixes github issue #379, reported by Joe Orton.
13 lines
156 B
OpenEdge ABL
13 lines
156 B
OpenEdge ABL
%module xxx
|
|
|
|
%pythoncode %{
|
|
def one():
|
|
print "in one"
|
|
%}
|
|
|
|
%pythoncode %{
|
|
print "still in one"
|
|
|
|
def two():
|
|
print "in two"
|
|
%}
|