Beautify the output a bit - always put spaces around a template type list, eg Foo< abc >, was Foo<abc >.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10254 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f7deb81de1
commit
2cb828dbf8
1 changed files with 2 additions and 2 deletions
|
|
@ -514,8 +514,8 @@ String *SwigType_namestr(const SwigType *t) {
|
||||||
sz = Len(p);
|
sz = Len(p);
|
||||||
for (i = 0; i < sz; i++) {
|
for (i = 0; i < sz; i++) {
|
||||||
String *str = SwigType_str(Getitem(p, i), 0);
|
String *str = SwigType_str(Getitem(p, i), 0);
|
||||||
/* Avoid creating a <: token, which is the same as [ in C++. */
|
/* Avoid creating a <: token, which is the same as [ in C++ - put a space after '<'. */
|
||||||
if (i == 0 && Len(str) && *Char(str) == ':')
|
if (i == 0 && Len(str))
|
||||||
Putc(' ', r);
|
Putc(' ', r);
|
||||||
Append(r, str);
|
Append(r, str);
|
||||||
if ((i + 1) < sz)
|
if ((i + 1) < sz)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue