summaryrefslogtreecommitdiff
path: root/site_scons
diff options
context:
space:
mode:
authorTad Marshall <tad@10gen.com>2013-03-18 13:14:06 -0400
committerTad Marshall <tad@10gen.com>2013-03-18 13:14:06 -0400
commit2d2a2ce570c402dcdc445fde3842818b1ea6c89c (patch)
tree6c421c07916eb084d9df441ce44361e69ccca3cc /site_scons
parent34d0cb83c50a621ad8073fcb19bc96f5a6b8e858 (diff)
downloadmongo-2d2a2ce570c402dcdc445fde3842818b1ea6c89c.tar.gz
SERVER-7892 Do not strip indentation in JavaScript source code
V8 displays source code "as-is", so if we remove indentation then it won't be there when users display "built-in" shell helper source code.
Diffstat (limited to 'site_scons')
-rw-r--r--site_scons/site_tools/jsheader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/site_scons/site_tools/jsheader.py b/site_scons/site_tools/jsheader.py
index d3d5570d70f..813928bf14e 100644
--- a/site_scons/site_tools/jsheader.py
+++ b/site_scons/site_tools/jsheader.py
@@ -13,7 +13,7 @@ def jsToH(target, source, env):
]
def cppEscape(s):
- s = s.strip()
+ s = s.rstrip()
s = s.replace( '\\', '\\\\' )
s = s.replace( '"', r'\"' )
return s