whitespace fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7191 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2efc803b8e
commit
9bd7f1ec9a
1 changed files with 3 additions and 2 deletions
|
|
@ -909,6 +909,7 @@ class CSHARP : public Language {
|
|||
|
||||
// Add extra indentation
|
||||
Replaceall(enum_code, "\n", "\n ");
|
||||
Replaceall(enum_code, " \n", "\n");
|
||||
|
||||
Printv(proxy_class_constants_code, " ", enum_code, "\n\n", NIL);
|
||||
} else {
|
||||
|
|
@ -1284,7 +1285,7 @@ class CSHARP : public Language {
|
|||
|
||||
// Class attributes
|
||||
const String *csattributes = typemapLookup("csattributes", typemap_lookup_type, WARN_NONE);
|
||||
if (csattributes)
|
||||
if (csattributes && *Char(csattributes))
|
||||
Printf(proxy_class_def, "%s\n", csattributes);
|
||||
|
||||
Printv(proxy_class_def,
|
||||
|
|
@ -2364,7 +2365,7 @@ class CSHARP : public Language {
|
|||
|
||||
// Class attributes
|
||||
const String *csattributes = typemapLookup("csattributes", type, WARN_NONE);
|
||||
if (csattributes)
|
||||
if (csattributes && *Char(csattributes))
|
||||
Printf(swigtype, "%s\n", csattributes);
|
||||
|
||||
Printv(swigtype,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue