Closed cpcloud closed 9 years ago
A quick and very naive hack fixes the given example and still passes tests:
diff --git a/datashape/coretypes.py b/datashape/coretypes.py
index d883d8f..ff771e2 100644
--- a/datashape/coretypes.py
+++ b/datashape/coretypes.py
@@ -1360,7 +1360,7 @@ def pprint(ds, width=80):
ds = ds[-1]
if isinstance(ds, Record):
- pairs = ['%s: %s' % (name if ' ' not in name else
+ pairs = ['%s: %s' % (name if ' ' not in name and '/' not in name else
repr(print_unicode_string(name)),
pprint(typ, width - len(result) - len(name)))
for name, typ in zip(ds.names, ds.types)]
I'm not really sure what I'm doing though and what the implications may be. If this ad-hoc approach is reasonable, I can make a PR with a regression test.
i've got something already done, just haven't put it up yet
This doesn't work:
Oddly enough, with spaces after
a
and afterb
, it does: