From fb46282d18b65dcfa924d9c637351c0720bdacfc Mon Sep 17 00:00:00 2001 From: Bob Ippolito Date: Sat, 3 Jan 2009 03:05:13 +0000 Subject: yay whitespace and doctest git-svn-id: http://simplejson.googlecode.com/svn/trunk@159 a4795897-2c25-0410-b006-0d3caba88fa1 --- index.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'index.rst') diff --git a/index.rst b/index.rst index 87e8934..0c25930 100644 --- a/index.rst +++ b/index.rst @@ -44,7 +44,8 @@ Compact encoding:: Pretty printing:: >>> import simplejson as json - >>> print json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4) + >>> s = json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4) + >>> print '\n'.join([l.rstrip() for l in s.splitlines()]) { "4": 5, "6": 7 -- cgit v1.2.1