Improve handling of whitespace in %pythoncode
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.
This commit is contained in:
parent
a8c6f9c9e2
commit
822b2355c0
10 changed files with 173 additions and 48 deletions
|
|
@ -236,6 +236,10 @@
|
|||
|
||||
/* please leave 720-739 free for Scilab */
|
||||
|
||||
#define WARN_PYTHON_INDENT_MISMATCH 740
|
||||
|
||||
/* please leave 740-759 free for Python */
|
||||
|
||||
#define WARN_RUBY_WRONG_NAME 801
|
||||
#define WARN_RUBY_MULTIPLE_INHERITANCE 802
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue