Swig_print_node truncates to 80 characters now instead of 40
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
07bdd8bd18
commit
27b7d1de5b
1 changed files with 2 additions and 2 deletions
|
|
@ -82,10 +82,10 @@ void Swig_print_node(Node *obj) {
|
||||||
print_indent(2);
|
print_indent(2);
|
||||||
if (DohIsString(Getattr(obj, k))) {
|
if (DohIsString(Getattr(obj, k))) {
|
||||||
o = Str(Getattr(obj, k));
|
o = Str(Getattr(obj, k));
|
||||||
if (Len(o) > 40) {
|
if (Len(o) > 80) {
|
||||||
trunc = "...";
|
trunc = "...";
|
||||||
}
|
}
|
||||||
Printf(stdout, "%-12s - \"%(escape)-0.40s%s\"\n", k, o, trunc);
|
Printf(stdout, "%-12s - \"%(escape)-0.80s%s\"\n", k, o, trunc);
|
||||||
Delete(o);
|
Delete(o);
|
||||||
} else {
|
} else {
|
||||||
Printf(stdout, "%-12s - 0x%x\n", k, Getattr(obj, k));
|
Printf(stdout, "%-12s - 0x%x\n", k, Getattr(obj, k));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue