THRIFT-2768: Whitespace Fixup
Client: General (Makefile.am, *.thrift)
Patch: Jens Geyer

DocTest.thrift has NOT been changed, the trailing whitespaces are part of the test case.
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 5751a2c..ee919b4 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -81,12 +81,12 @@
 # All of the libs that don't use Automake need to go in here
 # so they will end up in our release tarballs.
 EXTRA_DIST = \
-	as3 \
-	cocoa \
-	d \
-	delphi \
-	javame \
-	js \
-	ocaml \
-	st \
-	ts
+    as3 \
+    cocoa \
+    d \
+    delphi \
+    javame \
+    js \
+    ocaml \
+    st \
+    ts
diff --git a/lib/c_glib/test/Makefile.am b/lib/c_glib/test/Makefile.am
index 72d0f64..e106bb1 100755
--- a/lib/c_glib/test/Makefile.am
+++ b/lib/c_glib/test/Makefile.am
@@ -159,16 +159,16 @@
 THRIFT = $(top_builddir)/compiler/cpp/thrift
 
 gen-c_glib/t_test_debug_proto_test_types.c gen-c_glib/t_test_debug_proto_test_types.h gen-c_glib/t_test_empty_service.c gen-c_glib/t_test_empty_service.h gen-c_glib/t_test_inherited.c gen-c_glib/t_test_inherited.h gen-c_glib/t_test_reverse_order_service.c gen-c_glib/t_test_reverse_order_service.h gen-c_glib/t_test_service_for_exception_with_a_map.c gen-c_glib/t_test_service_for_exception_with_a_map.h gen-c_glib/t_test_srv.c gen-c_glib/t_test_srv.h: ../../../test/DebugProtoTest.thrift
-	$(THRIFT) --gen c_glib $<
+    $(THRIFT) --gen c_glib $<
 
 gen-c_glib/t_test_optional_required_test_types.c gen-c_glib/t_test_optional_required_test_types.h: ../../../test/OptionalRequiredTest.thrift
-	$(THRIFT) --gen c_glib $<
+    $(THRIFT) --gen c_glib $<
 
 gen-c_glib/t_test_second_service.c gen-c_glib/t_test_thrift_test.c gen-c_glib/t_test_thrift_test_types.c gen-c_glib/t_test_second_service.h gen-c_glib/t_test_thrift_test-.h gen-c_glib/t_test_thrift_test_types.h: ../../../test/ThriftTest.thrift
-	$(THRIFT) --gen c_glib $<
+    $(THRIFT) --gen c_glib $<
 
 gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest.h: ../../../test/ThriftTest.thrift
-	$(THRIFT) --gen cpp $<
+    $(THRIFT) --gen cpp $<
 
 TESTS = \
   $(check_PROGRAMS) \
@@ -191,39 +191,39 @@
                      ${myextravalgrindleakopts}
 
 memcheck: $(check_PROGRAMS)
-	@for x in $(check_PROGRAMS);                                     \
-	  do                                                             \
-	    $(MAKE) memcheck-$$x;                                        \
-	  done
+    @for x in $(check_PROGRAMS);                                     \
+      do                                                             \
+        $(MAKE) memcheck-$$x;                                        \
+      done
 
 leakcheck: $(check_PROGRAMS)
-	@for x in $(check_PROGRAMS);                                     \
-	  do                                                             \
-	    $(MAKE) leakcheck-$$x;                                       \
-	done
+    @for x in $(check_PROGRAMS);                                     \
+      do                                                             \
+        $(MAKE) leakcheck-$$x;                                       \
+    done
 
 memcheck-%: %
-	@echo "*****************************************";               \
-	echo "MEMCHECK: $<";                                             \
-	echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_MEM_OPTS} ${$<_VALGRIND_MEM_OPTS}";                                                                      \
-	$(LIBTOOL) --mode=execute                                        \
-	  valgrind                                                       \
-	    ${VALGRIND_OPTS}                                             \
-	    ${VALGRIND_MEM_OPTS}                                         \
-	    ${$<_VALGRIND_MEM_OPTS} ./$<
+    @echo "*****************************************";               \
+    echo "MEMCHECK: $<";                                             \
+    echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_MEM_OPTS} ${$<_VALGRIND_MEM_OPTS}";                                                                      \
+    $(LIBTOOL) --mode=execute                                        \
+      valgrind                                                       \
+        ${VALGRIND_OPTS}                                             \
+        ${VALGRIND_MEM_OPTS}                                         \
+        ${$<_VALGRIND_MEM_OPTS} ./$<
 
 leakcheck-%: %
-	@echo "*****************************************";              \
-	echo "LEAKCHECK: $<";                                           \
-	echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_LEAK_OPTS} ${$<_VALGRIND_LEAK_OPTS}";                                                                   \
-	G_SLICE=always-malloc $(LIBTOOL) --mode=execute                 \
-	  valgrind                                                      \
-	    ${VALGRIND_OPTS}                                            \
-	    ${VALGRIND_LEAK_OPTS}                                       \
-	    ${$<_VALGRIND_LEAK_OPTS}  ./$<
+    @echo "*****************************************";              \
+    echo "LEAKCHECK: $<";                                           \
+    echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_LEAK_OPTS} ${$<_VALGRIND_LEAK_OPTS}";                                                                   \
+    G_SLICE=always-malloc $(LIBTOOL) --mode=execute                 \
+      valgrind                                                      \
+        ${VALGRIND_OPTS}                                            \
+        ${VALGRIND_LEAK_OPTS}                                       \
+        ${$<_VALGRIND_LEAK_OPTS}  ./$<
 
 clean-local:
-	$(RM) -r gen-c_glib gen-cpp
+    $(RM) -r gen-c_glib gen-cpp
 
 CLEANFILES =                            \
     *.bb                                \
diff --git a/lib/cpp/Makefile.am b/lib/cpp/Makefile.am
index 4bd40fb..2d77a34 100755
--- a/lib/cpp/Makefile.am
+++ b/lib/cpp/Makefile.am
@@ -18,7 +18,7 @@
 #
 
 moc_%.cpp: %.h
-	$(QT_MOC) $(QT_CFLAGS) $< -o $@
+    $(QT_MOC) $(QT_CFLAGS) $< -o $@
 
 SUBDIRS = .
 
diff --git a/lib/cpp/test/Makefile.am b/lib/cpp/test/Makefile.am
index 012d226..3dbcb45 100755
--- a/lib/cpp/test/Makefile.am
+++ b/lib/cpp/test/Makefile.am
@@ -19,28 +19,28 @@
 .NOTPARALLEL:
 noinst_LTLIBRARIES = libtestgencpp.la libprocessortest.la
 nodist_libtestgencpp_la_SOURCES = \
-	gen-cpp/DebugProtoTest_types.cpp \
-	gen-cpp/DebugProtoTest_types.h \
-	gen-cpp/EnumTest_types.cpp \
-	gen-cpp/EnumTest_types.h \
-	gen-cpp/OptionalRequiredTest_types.cpp \
-	gen-cpp/OptionalRequiredTest_types.h \
-	gen-cpp/Recursive_types.cpp \
-	gen-cpp/Recursive_types.h \
-	gen-cpp/ThriftTest_types.cpp \
-	gen-cpp/ThriftTest_types.h \
-	gen-cpp/TypedefTest_types.cpp \
-	gen-cpp/TypedefTest_types.h \
-	ThriftTest_extras.cpp \
-	DebugProtoTest_extras.cpp
+    gen-cpp/DebugProtoTest_types.cpp \
+    gen-cpp/DebugProtoTest_types.h \
+    gen-cpp/EnumTest_types.cpp \
+    gen-cpp/EnumTest_types.h \
+    gen-cpp/OptionalRequiredTest_types.cpp \
+    gen-cpp/OptionalRequiredTest_types.h \
+    gen-cpp/Recursive_types.cpp \
+    gen-cpp/Recursive_types.h \
+    gen-cpp/ThriftTest_types.cpp \
+    gen-cpp/ThriftTest_types.h \
+    gen-cpp/TypedefTest_types.cpp \
+    gen-cpp/TypedefTest_types.h \
+    ThriftTest_extras.cpp \
+    DebugProtoTest_extras.cpp
 
 nodist_libprocessortest_la_SOURCES = \
-	gen-cpp/ChildService.cpp \
-	gen-cpp/ChildService.h \
-	gen-cpp/ParentService.cpp \
-	gen-cpp/ParentService.h \
-	gen-cpp/proc_types.cpp \
-	gen-cpp/proc_types.h
+    gen-cpp/ChildService.cpp \
+    gen-cpp/ChildService.h \
+    gen-cpp/ParentService.cpp \
+    gen-cpp/ParentService.h \
+    gen-cpp/proc_types.cpp \
+    gen-cpp/proc_types.h
 
 ThriftTest_extras.o: gen-cpp/ThriftTest_types.h
 DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h
@@ -50,45 +50,45 @@
 noinst_PROGRAMS = Benchmark
 
 Benchmark_SOURCES = \
-	Benchmark.cpp
+    Benchmark.cpp
 
 Benchmark_LDADD = libtestgencpp.la
 
 check_PROGRAMS = \
-	TFDTransportTest \
-	TPipedTransportTest \
-	DebugProtoTest \
-	JSONProtoTest \
-	OptionalRequiredTest \
-	RecursiveTest \
-	SpecializationTest \
-	AllProtocolsTest \
-	TransportTest \
-	ZlibTest \
-	TFileTransportTest \
-	UnitTests \
-	link_test \
-	OpenSSLManualInitTest \
-	EnumTest
+    TFDTransportTest \
+    TPipedTransportTest \
+    DebugProtoTest \
+    JSONProtoTest \
+    OptionalRequiredTest \
+    RecursiveTest \
+    SpecializationTest \
+    AllProtocolsTest \
+    TransportTest \
+    ZlibTest \
+    TFileTransportTest \
+    UnitTests \
+    link_test \
+    OpenSSLManualInitTest \
+    EnumTest
 # disable these test ... too strong
 #       processor_test
-#	concurrency_test
+#    concurrency_test
 
 TESTS_ENVIRONMENT= \
-	BOOST_TEST_LOG_SINK=tests.xml \
-	BOOST_TEST_LOG_LEVEL=test_suite \
-	BOOST_TEST_LOG_FORMAT=xml
+    BOOST_TEST_LOG_SINK=tests.xml \
+    BOOST_TEST_LOG_LEVEL=test_suite \
+    BOOST_TEST_LOG_FORMAT=xml
 
 TESTS = \
-	$(check_PROGRAMS)
+    $(check_PROGRAMS)
 
 UnitTests_SOURCES = \
-	UnitTestMain.cpp \
-	TMemoryBufferTest.cpp \
-	TBufferBaseTest.cpp \
-	Base64Test.cpp \
-	ToStringTest.cpp \
-	TypedefTest.cpp
+    UnitTestMain.cpp \
+    TMemoryBufferTest.cpp \
+    TBufferBaseTest.cpp \
+    Base64Test.cpp \
+    ToStringTest.cpp \
+    TypedefTest.cpp
 
 if !WITH_BOOSTTHREADS
 UnitTests_SOURCES += \
@@ -100,7 +100,7 @@
   -l:libboost_unit_test_framework.a
 
 TransportTest_SOURCES = \
-	TransportTest.cpp
+    TransportTest.cpp
 
 TransportTest_LDADD = \
   libtestgencpp.la \
@@ -109,7 +109,7 @@
   -lz
 
 ZlibTest_SOURCES = \
-	ZlibTest.cpp
+    ZlibTest.cpp
 
 ZlibTest_LDADD = \
   libtestgencpp.la \
@@ -125,7 +125,7 @@
   -l:libboost_unit_test_framework.a
 
 TFileTransportTest_SOURCES = \
-	TFileTransportTest.cpp
+    TFileTransportTest.cpp
 
 TFileTransportTest_LDADD = \
   libtestgencpp.la \
@@ -135,28 +135,28 @@
 # TFDTransportTest
 #
 TFDTransportTest_SOURCES = \
-	TFDTransportTest.cpp
+    TFDTransportTest.cpp
 
 TFDTransportTest_LDADD = \
-	$(top_builddir)/lib/cpp/libthrift.la
+    $(top_builddir)/lib/cpp/libthrift.la
 
 
 #
 # TPipedTransportTest
 #
 TPipedTransportTest_SOURCES = \
-	TPipedTransportTest.cpp
+    TPipedTransportTest.cpp
 
 TPipedTransportTest_LDADD = \
-	$(top_builddir)/lib/cpp/libthrift.la
+    $(top_builddir)/lib/cpp/libthrift.la
 
 #
 # AllProtocolsTest
 #
 AllProtocolsTest_SOURCES = \
-	AllProtocolTests.cpp \
-	AllProtocolTests.tcc \
-	GenericHelpers.h
+    AllProtocolTests.cpp \
+    AllProtocolTests.tcc \
+    GenericHelpers.h
 
 AllProtocolsTest_LDADD = libtestgencpp.la
 
@@ -164,7 +164,7 @@
 # DebugProtoTest
 #
 DebugProtoTest_SOURCES = \
-	DebugProtoTest.cpp
+    DebugProtoTest.cpp
 
 DebugProtoTest_LDADD = libtestgencpp.la
 
@@ -173,7 +173,7 @@
 # JSONProtoTest
 #
 JSONProtoTest_SOURCES = \
-	JSONProtoTest.cpp
+    JSONProtoTest.cpp
 
 JSONProtoTest_LDADD = libtestgencpp.la
 
@@ -181,7 +181,7 @@
 # OptionalRequiredTest
 #
 OptionalRequiredTest_SOURCES = \
-	OptionalRequiredTest.cpp
+    OptionalRequiredTest.cpp
 
 OptionalRequiredTest_LDADD = libtestgencpp.la
 
@@ -189,7 +189,7 @@
 # OptionalRequiredTest
 #
 RecursiveTest_SOURCES = \
-	RecursiveTest.cpp
+    RecursiveTest.cpp
 
 RecursiveTest_LDADD = libtestgencpp.la
 
@@ -197,15 +197,15 @@
 # SpecializationTest
 #
 SpecializationTest_SOURCES = \
-	SpecializationTest.cpp
+    SpecializationTest.cpp
 
 SpecializationTest_LDADD = libtestgencpp.la
 
 concurrency_test_SOURCES = \
-	concurrency/Tests.cpp \
-	concurrency/ThreadFactoryTests.h \
-	concurrency/ThreadManagerTests.h \
-	concurrency/TimerManagerTests.h
+    concurrency/Tests.cpp \
+    concurrency/ThreadFactoryTests.h \
+    concurrency/ThreadManagerTests.h \
+    concurrency/TimerManagerTests.h
 
 concurrency_test_LDADD = \
   $(top_builddir)/lib/cpp/libthrift.la
@@ -216,12 +216,12 @@
   link/TemplatedService2.cpp
 
 processor_test_SOURCES = \
-	processor/ProcessorTest.cpp \
-	processor/EventLog.cpp \
-	processor/ServerThread.cpp \
-	processor/EventLog.h \
-	processor/Handlers.h \
-	processor/ServerThread.h
+    processor/ProcessorTest.cpp \
+    processor/EventLog.cpp \
+    processor/ServerThread.cpp \
+    processor/EventLog.h \
+    processor/Handlers.h \
+    processor/ServerThread.h
 
 processor_test_LDADD = libprocessortest.la \
                        $(top_builddir)/lib/cpp/libthrift.la \
@@ -231,11 +231,11 @@
                        -l:libboost_unit_test_framework.a
 
 OpenSSLManualInitTest_SOURCES = \
-	OpenSSLManualInitTest.cpp
+    OpenSSLManualInitTest.cpp
 
 OpenSSLManualInitTest_LDADD = \
-	$(top_builddir)/lib/cpp/libthrift.la \
-	-l:libboost_unit_test_framework.a
+    $(top_builddir)/lib/cpp/libthrift.la \
+    -l:libboost_unit_test_framework.a
 
 #
 # Common thrift code generation rules
@@ -243,39 +243,39 @@
 THRIFT = $(top_builddir)/compiler/cpp/thrift
 
 gen-cpp/DebugProtoTest_types.cpp gen-cpp/DebugProtoTest_types.h: $(top_srcdir)/test/DebugProtoTest.thrift
-	$(THRIFT) --gen cpp:dense $<
+    $(THRIFT) --gen cpp:dense $<
 
 gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
-	$(THRIFT) --gen cpp $<
+    $(THRIFT) --gen cpp $<
 
 gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
-	$(THRIFT) --gen cpp $<
+    $(THRIFT) --gen cpp $<
 
 gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
-	$(THRIFT) --gen cpp:dense $<
+    $(THRIFT) --gen cpp:dense $<
 
 gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
-	$(THRIFT) --gen cpp $<
+    $(THRIFT) --gen cpp $<
 
 gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
-	$(THRIFT) --gen cpp:dense $<
+    $(THRIFT) --gen cpp:dense $<
 
 gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp gen-cpp/ThriftTest_types.h: $(top_srcdir)/test/ThriftTest.thrift
-	$(THRIFT) --gen cpp:dense $<
+    $(THRIFT) --gen cpp:dense $<
 
 gen-cpp/ChildService.cpp: processor/proc.thrift
-	$(THRIFT) --gen cpp:templates,cob_style $<
+    $(THRIFT) --gen cpp:templates,cob_style $<
 
 AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(top_srcdir)/lib/cpp/src
 AM_LDFLAGS = $(BOOST_LDFLAGS)
 AM_CXXFLAGS = -Wall
 
 clean-local:
-	$(RM) -r gen-cpp
+    $(RM) -r gen-cpp
 
 EXTRA_DIST = \
-	DenseProtoTest.cpp \
-	ThriftTest_extras.cpp \
-	DebugProtoTest_extras.cpp \
-	concurrency \
-	processor
+    DenseProtoTest.cpp \
+    ThriftTest_extras.cpp \
+    DebugProtoTest_extras.cpp \
+    concurrency \
+    processor
diff --git a/lib/d/Makefile.am b/lib/d/Makefile.am
index 759677a..5e34f99 100644
--- a/lib/d/Makefile.am
+++ b/lib/d/Makefile.am
@@ -41,37 +41,37 @@
 d_async_DATA = $(addprefix src/, $(addsuffix .d, $(d_asyncmodules)))
 
 d_codegenmodules = $(addprefix thrift/codegen/, async_client \
-	async_client_pool base client client_pool idlgen processor)
+    async_client_pool base client client_pool idlgen processor)
 d_codegendir = $(d_thriftdir)/codegen
 d_codegen_DATA = $(addprefix src/, $(addsuffix .d, $(d_codegenmodules)))
 
 d_protocolmodules = $(addprefix thrift/protocol/, base binary compact json \
-	processor)
+    processor)
 d_protocoldir = $(d_thriftdir)/protocol
 d_protocol_DATA = $(addprefix src/, $(addsuffix .d, $(d_protocolmodules)))
 
 d_servermodules = $(addprefix thrift/server/, base simple nonblocking \
-	taskpool threaded)
+    taskpool threaded)
 d_serverdir = $(d_thriftdir)/server
 d_server_DATA = $(addprefix src/, $(addsuffix .d, $(d_servermodules)))
 
 d_servertransportmodules = $(addprefix thrift/server/transport/, base socket ssl)
 d_servertransportdir = $(d_thriftdir)/server/transport
 d_servertransport_DATA = $(addprefix src/, $(addsuffix .d, \
-	$(d_servertransportmodules)))
+    $(d_servertransportmodules)))
 
 d_transportmodules = $(addprefix thrift/transport/, base buffered file \
-	framed http memory piped range socket ssl zlib)
+    framed http memory piped range socket ssl zlib)
 d_transportdir = $(d_thriftdir)/transport
 d_transport_DATA = $(addprefix src/, $(addsuffix .d, $(d_transportmodules)))
 
 d_utilmodules = $(addprefix thrift/util/, awaitable cancellation future \
-	hashset)
+    hashset)
 d_utildir = $(d_thriftdir)/util
 d_util_DATA = $(addprefix src/, $(addsuffix .d, $(d_utilmodules)))
 
 d_internalmodules = $(addprefix thrift/internal/, algorithm codegen ctfe \
-	endian resource_pool socket ssl ssl_bio traits)
+    endian resource_pool socket ssl ssl_bio traits)
 d_internaldir = $(d_thriftdir)/internal
 d_internal_DATA = $(addprefix src/, $(addsuffix .d, $(d_internalmodules)))
 
@@ -80,8 +80,8 @@
 d_test_DATA = $(addprefix src/, $(addsuffix .d, $(d_testmodules)))
 
 d_publicmodules = $(d_thriftmodules) $(d_asyncmodules) \
-	$(d_codegenmodules) $(d_protocolmodules) $(d_servermodules) \
-	$(d_servertransportmodules) $(d_transportmodules) $(d_utilmodules)
+    $(d_codegenmodules) $(d_protocolmodules) $(d_servermodules) \
+    $(d_servertransportmodules) $(d_transportmodules) $(d_utilmodules)
 d_publicsources = $(addprefix src/, $(addsuffix .d, $(d_publicmodules)))
 
 d_modules = $(d_publicmodules) $(d_internalmodules) $(d_testmodules)
@@ -89,9 +89,9 @@
 # List modules with external dependencies and remove them from the main list
 d_libevent_dependent_modules = thrift/async/libevent thrift/server/nonblocking
 d_openssl_dependent_modules = thrift/async/ssl thrift/internal/ssl \
-	thrift/internal/ssl_bio thrift/transport/ssl thrift/server/transport/ssl
+    thrift/internal/ssl_bio thrift/transport/ssl thrift/server/transport/ssl
 d_main_modules = $(filter-out $(d_libevent_dependent_modules) \
-	$(d_openssl_dependent_modules),$(d_modules))
+    $(d_openssl_dependent_modules),$(d_modules))
 
 
 d_lib_flags = -w -wi -Isrc -lib
@@ -102,7 +102,7 @@
 #
 if HAVE_DEIMOS_EVENT2
 $(D_EVENT_LIB_NAME): $(addprefix src/, $(addsuffix .d, $(d_libevent_dependent_modules)))
-	$(DMD) -of$(D_EVENT_LIB_NAME) $(d_lib_flags) $^
+    $(DMD) -of$(D_EVENT_LIB_NAME) $(d_lib_flags) $^
 all_targets += $(D_EVENT_LIB_NAME)
 endif
 
@@ -111,7 +111,7 @@
 #
 if HAVE_DEIMOS_OPENSSL
 $(D_SSL_LIB_NAME): $(addprefix src/, $(addsuffix .d, $(d_openssl_dependent_modules)))
-	$(DMD) -of$(D_SSL_LIB_NAME) $(d_lib_flags) $^
+    $(DMD) -of$(D_SSL_LIB_NAME) $(d_lib_flags) $^
 all_targets += $(D_SSL_LIB_NAME)
 endif
 
@@ -119,7 +119,7 @@
 # Main library target.
 #
 $(D_LIB_NAME): $(addprefix src/, $(addsuffix .d, $(d_main_modules)))
-	$(DMD) -of$(D_LIB_NAME) $(d_lib_flags) $^
+    $(DMD) -of$(D_LIB_NAME) $(d_lib_flags) $^
 all_targets += $(D_LIB_NAME)
 
 
@@ -127,7 +127,7 @@
 # Documentation target (requires Dil).
 #
 docs: $(d_publicsources) src/thrift/index.d
-	dil ddoc docs -hl --kandil $^
+    dil ddoc docs -hl --kandil $^
 
 
 #
@@ -136,11 +136,11 @@
 all-local: $(all_targets)
 
 install-exec-local:
-	$(INSTALL_PROGRAM) $(all_targets) $(DESTDIR)$(libdir)
+    $(INSTALL_PROGRAM) $(all_targets) $(DESTDIR)$(libdir)
 
 
 clean-local:
-	$(RM) -rf docs $(D_LIB_NAME) $(D_EVENT_LIB_NAME) $(D_SSL_LIB_NAME) unittest
+    $(RM) -rf docs $(D_LIB_NAME) $(D_EVENT_LIB_NAME) $(D_SSL_LIB_NAME) unittest
 
 
 #
@@ -167,23 +167,23 @@
 endif
 
 unittest/emptymain.d: unittest/.directory
-	@echo 'void main(){}' >$@
+    @echo 'void main(){}' >$@
 
 unittest/.directory:
-	mkdir -p unittest || exists unittest
-	touch $@
+    mkdir -p unittest || exists unittest
+    touch $@
 
 unittest/debug/%: src/%.d $(all_targets) unittest/emptymain.d
-	$(DMD) -gc -of$(subst /,$(DMD_OF_DIRSEP),$@) $(d_test_flags) $^
+    $(DMD) -gc -of$(subst /,$(DMD_OF_DIRSEP),$@) $(d_test_flags) $^
 
 unittest/release/%: src/%.d $(all_targets) unittest/emptymain.d
-	$(DMD) -O -release -of$(subst /,$(DMD_OF_DIRSEP),$@) $(d_test_flags) $^
+    $(DMD) -O -release -of$(subst /,$(DMD_OF_DIRSEP),$@) $(d_test_flags) $^
 
 TESTS = $(addprefix unittest/debug/, $(d_test_modules)) \
-	$(addprefix unittest/release/, $(d_test_modules))
+    $(addprefix unittest/release/, $(d_test_modules))
 
 
 EXTRA_DIST = \
-	src \
-	test \
-	README.md
+    src \
+    test \
+    README.md
diff --git a/lib/d/test/Makefile.am b/lib/d/test/Makefile.am
index 0482583..b2f5a4b 100755
--- a/lib/d/test/Makefile.am
+++ b/lib/d/test/Makefile.am
@@ -26,33 +26,33 @@
 debug_proto_gen = $(addprefix gen-d/, DebugProtoTest_types.d)
 
 $(debug_proto_gen): $(top_srcdir)/test/DebugProtoTest.thrift
-	$(THRIFT) --gen d -nowarn $<
+    $(THRIFT) --gen d -nowarn $<
 
 stress_test_gen = $(addprefix gen-d/thrift/test/stress/, Service.d \
-	StressTest_types.d)
+    StressTest_types.d)
 
 $(stress_test_gen): $(top_srcdir)/test/StressTest.thrift
-	$(THRIFT) --gen d $<
+    $(THRIFT) --gen d $<
 
 thrift_test_gen = $(addprefix gen-d/thrift/test/, SecondService.d \
-	ThriftTest.d ThriftTest_constants.d ThriftTest_types.d)
+    ThriftTest.d ThriftTest_constants.d ThriftTest_types.d)
 
 $(thrift_test_gen): $(top_srcdir)/test/ThriftTest.thrift
-	$(THRIFT) --gen d $<
+    $(THRIFT) --gen d $<
 
 
 # The actual test targets.
 # There just must be some way to reassign a variable without warnings in
 # Automake...
 targets__ = async_test client_pool_test serialization_benchmark \
-	stress_test_server thrift_test_client thrift_test_server transport_test
+    stress_test_server thrift_test_client thrift_test_server transport_test
 ran_tests__ = client_pool_test \
-	transport_test \
-	async_test_runner.sh \
-	thrift_test_runner.sh
+    transport_test \
+    async_test_runner.sh \
+    thrift_test_runner.sh
 
 libevent_dependent_targets = async_test_client client_pool_test \
-	stress_test_server thrift_test_server
+    stress_test_server thrift_test_server
 libevent_dependent_ran_tests = client_pool_test async_test_runner.sh thrift_test_runner.sh
 
 openssl_dependent_targets = async_test thrift_test_client thrift_test_server
@@ -79,23 +79,23 @@
 endif
 
 d_test_flags += -w -wi -O -release -inline -I$(top_srcdir)/lib/d/src -Igen-d \
-	$(top_builddir)/lib/d/$(D_LIB_NAME)
+    $(top_builddir)/lib/d/$(D_LIB_NAME)
 
 
 async_test client_pool_test transport_test: %: %.d
-	$(DMD) $(d_test_flags) -of$@ $^
+    $(DMD) $(d_test_flags) -of$@ $^
 
 serialization_benchmark: %: %.d $(debug_proto_gen)
-	$(DMD) $(d_test_flags) -of$@ $^
+    $(DMD) $(d_test_flags) -of$@ $^
 
 stress_test_server: %: %.d test_utils.d $(stress_test_gen)
-	$(DMD) $(d_test_flags) -of$@ $^
+    $(DMD) $(d_test_flags) -of$@ $^
 
 thrift_test_client: %: %.d thrift_test_common.d $(thrift_test_gen)
-	$(DMD) $(d_test_flags) -of$@ $^
+    $(DMD) $(d_test_flags) -of$@ $^
 
 thrift_test_server: %: %.d thrift_test_common.d test_utils.d $(thrift_test_gen)
-	$(DMD) $(d_test_flags) -of$@ $^
+    $(DMD) $(d_test_flags) -of$@ $^
 
 
 # Certificate generation targets (for the SSL tests).
@@ -103,22 +103,22 @@
 # replaced by a more elaborate mechanism.
 
 server-certificate.pem: openssl.test.cnf
-	openssl req -new -x509 -nodes -config openssl.test.cnf \
-		-out server-certificate.pem
+    openssl req -new -x509 -nodes -config openssl.test.cnf \
+        -out server-certificate.pem
 
 trusted-ca-certificate.pem: server-certificate.pem
-	cat server-certificate.pem > $@
+    cat server-certificate.pem > $@
 
 check-local: $(targets)
 
 clean-local:
-	$(RM) -rf gen-d $(targets) $(addsuffix .o, $(targets))
+    $(RM) -rf gen-d $(targets) $(addsuffix .o, $(targets))
 
 
 # Tests ran as part of make check.
 
 async_test_runner.sh: async_test trusted-ca-certificate.pem server-certificate.pem
 thrift_test_runner.sh: thrift_test_client thrift_test_server \
-	trusted-ca-certificate.pem server-certificate.pem
+    trusted-ca-certificate.pem server-certificate.pem
 
 TESTS = $(ran_tests)
diff --git a/lib/erl/Makefile.am b/lib/erl/Makefile.am
index 60c7e5a..9614379 100644
--- a/lib/erl/Makefile.am
+++ b/lib/erl/Makefile.am
@@ -19,47 +19,47 @@
 
 THRIFT = ../../compiler/cpp/thrift
 THRIFT_FILES = $(wildcard test/*.thrift) \
-		  ../../test/ThriftTest.thrift
+          ../../test/ThriftTest.thrift
 
 .generated: $(THRIFT_FILES)
-	for f in $(THRIFT_FILES) ; do \
-	  $(THRIFT) --gen erl -o test $$f ; \
-	done ; \
-	touch .generated
+    for f in $(THRIFT_FILES) ; do \
+      $(THRIFT) --gen erl -o test $$f ; \
+    done ; \
+    touch .generated
 
 all: .generated
-	./rebar get-deps
-	./rebar compile
+    ./rebar get-deps
+    ./rebar compile
 
 check: .generated
-	./rebar skip_deps=true eunit
+    ./rebar skip_deps=true eunit
 
 install: all
-	mkdir -p $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift) ; \
-	mkdir -p $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)/ebin ; \
-	mkdir -p $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)/include ; \
-	mkdir -p $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)/src ; \
-	for p in ebin/*.app* ebin/*.beam include/*.hrl src/*.erl ; \
-		do $(INSTALL) $$p $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)/$$p ; \
-	done
+    mkdir -p $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift) ; \
+    mkdir -p $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)/ebin ; \
+    mkdir -p $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)/include ; \
+    mkdir -p $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)/src ; \
+    for p in ebin/*.app* ebin/*.beam include/*.hrl src/*.erl ; \
+        do $(INSTALL) $$p $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)/$$p ; \
+    done
 
 uninstall:
-	rm -rf $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)
+    rm -rf $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)
 
 clean:
-	rm -f .generated
-	rm -rf test/gen-erl/
-	./rebar clean
+    rm -f .generated
+    rm -rf test/gen-erl/
+    ./rebar clean
 
 maintainer-clean-local:
-	rm -rf ebin
+    rm -rf ebin
 
 EXTRA_DIST = \
-	include \
-	src \
-	rebar \
-	rebar.config \
-	test \
-	README.md
+    include \
+    src \
+    rebar \
+    rebar.config \
+    test \
+    README.md
 
 MAINTAINERCLEANFILES = Makefile.in
diff --git a/lib/go/Makefile.am b/lib/go/Makefile.am
index be2a2e5..05369b9 100644
--- a/lib/go/Makefile.am
+++ b/lib/go/Makefile.am
@@ -24,17 +24,17 @@
 endif
 
 install:
-	@echo '##############################################################'
-	@echo '##############################################################'
-	@echo 'The Go client library should be installed via "go get", please see /lib/go/README.md'
-	@echo '##############################################################'
-	@echo '##############################################################'
+    @echo '##############################################################'
+    @echo '##############################################################'
+    @echo 'The Go client library should be installed via "go get", please see /lib/go/README.md'
+    @echo '##############################################################'
+    @echo '##############################################################'
 
 check-local:
-	$(GO) test ./thrift
+    $(GO) test ./thrift
 
 all-local: check-local
 
 EXTRA_DIST = \
-	thrift \
-	README.md
+    thrift \
+    README.md
diff --git a/lib/go/test/GoTagTest.thrift b/lib/go/test/GoTagTest.thrift
index d92c66b..539f3d2 100644
--- a/lib/go/test/GoTagTest.thrift
+++ b/lib/go/test/GoTagTest.thrift
@@ -18,6 +18,6 @@
 #
 
 struct tagged {
-	1: string string_thing,
-	2: i64 int_thing (go.tag = "json:\"int_thing,string\"")
+    1: string string_thing,
+    2: i64 int_thing (go.tag = "json:\"int_thing,string\"")
 }
diff --git a/lib/go/test/Makefile.am b/lib/go/test/Makefile.am
index c13ba74..b319d4f 100644
--- a/lib/go/test/Makefile.am
+++ b/lib/go/test/Makefile.am
@@ -22,55 +22,55 @@
 
 # Thrift for GO has problems with complex map keys: THRIFT-2063
 gopath: $(top_srcdir)/compiler/cpp/thrift $(THRIFTTEST) \
-				IncludesTest.thrift \
-				NamespacedTest.thrift \
-				MultiplexedProtocolTest.thrift \
-				OnewayTest.thrift \
-				OptionalFieldsTest.thrift \
-				ServicesTest.thrift \
-				GoTagTest.thrift \
-				TypedefFieldTest.thrift \
-				RefAnnotationFieldsTest.thrift
-	mkdir -p gopath/src
-	grep -v list.*map.*list.*map $(THRIFTTEST) | grep -v 'set<Insanity>' > ThriftTest.thrift
-	$(THRIFT) -r IncludesTest.thrift
-	$(THRIFT) BinaryKeyTest.thrift
-	$(THRIFT) MultiplexedProtocolTest.thrift
-	$(THRIFT) OnewayTest.thrift
-	$(THRIFT) OptionalFieldsTest.thrift
-	$(THRIFT) ServicesTest.thrift
-	$(THRIFT) GoTagTest.thrift
-	$(THRIFT) TypedefFieldTest.thrift
-	$(THRIFT) RefAnnotationFieldsTest.thrift
-	GOPATH=`pwd`/gopath $(GO) get code.google.com/p/gomock/gomock
-	ln -nfs ../../../thrift gopath/src/thrift
-	ln -nfs ../../tests gopath/src/tests
-	touch gopath
+                IncludesTest.thrift \
+                NamespacedTest.thrift \
+                MultiplexedProtocolTest.thrift \
+                OnewayTest.thrift \
+                OptionalFieldsTest.thrift \
+                ServicesTest.thrift \
+                GoTagTest.thrift \
+                TypedefFieldTest.thrift \
+                RefAnnotationFieldsTest.thrift
+    mkdir -p gopath/src
+    grep -v list.*map.*list.*map $(THRIFTTEST) | grep -v 'set<Insanity>' > ThriftTest.thrift
+    $(THRIFT) -r IncludesTest.thrift
+    $(THRIFT) BinaryKeyTest.thrift
+    $(THRIFT) MultiplexedProtocolTest.thrift
+    $(THRIFT) OnewayTest.thrift
+    $(THRIFT) OptionalFieldsTest.thrift
+    $(THRIFT) ServicesTest.thrift
+    $(THRIFT) GoTagTest.thrift
+    $(THRIFT) TypedefFieldTest.thrift
+    $(THRIFT) RefAnnotationFieldsTest.thrift
+    GOPATH=`pwd`/gopath $(GO) get code.google.com/p/gomock/gomock
+    ln -nfs ../../../thrift gopath/src/thrift
+    ln -nfs ../../tests gopath/src/tests
+    touch gopath
 
 check: gopath
-	GOPATH=`pwd`/gopath $(GO) build \
-				includestest \
-				binarykeytest \
-				servicestest \
-				typedeffieldtest \
-				refannotationfieldstest
-	GOPATH=`pwd`/gopath $(GO) test thrift tests
+    GOPATH=`pwd`/gopath $(GO) build \
+                includestest \
+                binarykeytest \
+                servicestest \
+                typedeffieldtest \
+                refannotationfieldstest
+    GOPATH=`pwd`/gopath $(GO) test thrift tests
 
 clean-local:
-	$(RM) -r gopath ThriftTest.thrift gen-go
+    $(RM) -r gopath ThriftTest.thrift gen-go
 
 client: stubs
-	$(GO) run TestClient.go
+    $(GO) run TestClient.go
 
 EXTRA_DIST = \
-	tests \
-	BinaryKeyTest.thrift \
-	GoTagTest.thrift \
-	IncludesTest.thrift \
-	MultiplexedProtocolTest.thrift \
-	NamespacedTest.thrift \
-	OnewayTest.thrift \
-	OptionalFieldsTest.thrift \
-	RefAnnotationFieldsTest.thrift \
-	ServicesTest.thrift \
-	TypedefFieldTest.thrift
+    tests \
+    BinaryKeyTest.thrift \
+    GoTagTest.thrift \
+    IncludesTest.thrift \
+    MultiplexedProtocolTest.thrift \
+    NamespacedTest.thrift \
+    OnewayTest.thrift \
+    OptionalFieldsTest.thrift \
+    RefAnnotationFieldsTest.thrift \
+    ServicesTest.thrift \
+    TypedefFieldTest.thrift
diff --git a/lib/go/test/MultiplexedProtocolTest.thrift b/lib/go/test/MultiplexedProtocolTest.thrift
index 0e21061..b263f59 100644
--- a/lib/go/test/MultiplexedProtocolTest.thrift
+++ b/lib/go/test/MultiplexedProtocolTest.thrift
@@ -18,10 +18,10 @@
 #
 
 service First {
-	i64 returnOne();
+    i64 returnOne();
 }
 
 service Second {
-	i64 returnTwo();
+    i64 returnTwo();
 }
 
diff --git a/lib/go/test/OnewayTest.thrift b/lib/go/test/OnewayTest.thrift
index cabb5da..3242f80 100644
--- a/lib/go/test/OnewayTest.thrift
+++ b/lib/go/test/OnewayTest.thrift
@@ -18,7 +18,7 @@
 #
 
 service OneWay {
-	oneway void hi(1: i64 i, 2: string s)
-	void emptyfunc()
-	i64 echo_int(1: i64 param)
+    oneway void hi(1: i64 i, 2: string s)
+    void emptyfunc()
+    i64 echo_int(1: i64 param)
 }
diff --git a/lib/go/test/ServicesTest.thrift b/lib/go/test/ServicesTest.thrift
index c79f472..882b03a 100644
--- a/lib/go/test/ServicesTest.thrift
+++ b/lib/go/test/ServicesTest.thrift
@@ -34,78 +34,78 @@
 }
 
 service a_serv {
-	void voidfunc(),
-	void void_with_1ex() throws(1: moderate_disaster err1)
-	void void_with_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
+    void voidfunc(),
+    void void_with_1ex() throws(1: moderate_disaster err1)
+    void void_with_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	string stringfunc()
-	string stringfunc_1ex() throws(1: moderate_disaster err1)
-	string stringfunc_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
+    string stringfunc()
+    string stringfunc_1ex() throws(1: moderate_disaster err1)
+    string stringfunc_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	i64 i64func()
-	i64 i64func_1ex() throws(1: moderate_disaster err1)
-	i64 i64func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
+    i64 i64func()
+    i64 i64func_1ex() throws(1: moderate_disaster err1)
+    i64 i64func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	list<string> list_of_strings_func()
-	list<string> list_of_strings_func_1ex() throws(1: moderate_disaster err1)
-	list<string> list_of_strings_func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
+    list<string> list_of_strings_func()
+    list<string> list_of_strings_func_1ex() throws(1: moderate_disaster err1)
+    list<string> list_of_strings_func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	map<i64,string> map_func()
-	map<i64,string> map_func_1ex() throws(1: moderate_disaster err1)
-	map<i64,string> map_func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
+    map<i64,string> map_func()
+    map<i64,string> map_func_1ex() throws(1: moderate_disaster err1)
+    map<i64,string> map_func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	struct_a struct_a_func()
-	struct_a struct_a_func_1ex() throws(1: moderate_disaster err1)
-	struct_a struct_a_func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
+    struct_a struct_a_func()
+    struct_a struct_a_func_1ex() throws(1: moderate_disaster err1)
+    struct_a struct_a_func_2ex() throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	void voidfunc_1int(1: i64 i),
-	void void_with_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
-	void void_with_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
+    void voidfunc_1int(1: i64 i),
+    void void_with_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
+    void void_with_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	string stringfunc_1int(1: i64 i)
-	string stringfunc_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
-	string stringfunc_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
+    string stringfunc_1int(1: i64 i)
+    string stringfunc_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
+    string stringfunc_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	i64 i64func_1int(1: i64 i)
-	i64 i64func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
-	i64 i64func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
+    i64 i64func_1int(1: i64 i)
+    i64 i64func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
+    i64 i64func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	list<string> list_of_strings_func_1int(1: i64 i)
-	list<string> list_of_strings_func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
-	list<string> list_of_strings_func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
+    list<string> list_of_strings_func_1int(1: i64 i)
+    list<string> list_of_strings_func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
+    list<string> list_of_strings_func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	map<i64,string> map_func_1int(1: i64 i)
-	map<i64,string> map_func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
-	map<i64,string> map_func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
+    map<i64,string> map_func_1int(1: i64 i)
+    map<i64,string> map_func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
+    map<i64,string> map_func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	struct_a struct_a_func_1int(1: i64 i)
-	struct_a struct_a_func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
-	struct_a struct_a_func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
+    struct_a struct_a_func_1int(1: i64 i)
+    struct_a struct_a_func_1ex_1int(1: i64 i) throws(1: moderate_disaster err1)
+    struct_a struct_a_func_2ex_1int(1: i64 i) throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	void voidfunc_1int_1s(1: i64 i, 2: string s),
-	void void_with_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
-	void void_with_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
+    void voidfunc_1int_1s(1: i64 i, 2: string s),
+    void void_with_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
+    void void_with_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	string stringfunc_1int_1s(1: i64 i, 2: string s)
-	string stringfunc_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
-	string stringfunc_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
+    string stringfunc_1int_1s(1: i64 i, 2: string s)
+    string stringfunc_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
+    string stringfunc_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	i64 i64func_1int_1s(1: i64 i, 2: string s)
-	i64 i64func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
-	i64 i64func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
+    i64 i64func_1int_1s(1: i64 i, 2: string s)
+    i64 i64func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
+    i64 i64func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	list<string> list_of_strings_func_1int_1s(1: i64 i, 2: string s)
-	list<string> list_of_strings_func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
-	list<string> list_of_strings_func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
+    list<string> list_of_strings_func_1int_1s(1: i64 i, 2: string s)
+    list<string> list_of_strings_func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
+    list<string> list_of_strings_func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	map<i64,string> map_func_1int_1s(1: i64 i, 2: string s)
-	map<i64,string> map_func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
-	map<i64,string> map_func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
+    map<i64,string> map_func_1int_1s(1: i64 i, 2: string s)
+    map<i64,string> map_func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
+    map<i64,string> map_func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	struct_a struct_a_func_1int_1s(1: i64 i, 2: string s)
-	struct_a struct_a_func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
-	struct_a struct_a_func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
+    struct_a struct_a_func_1int_1s(1: i64 i, 2: string s)
+    struct_a struct_a_func_1ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1)
+    struct_a struct_a_func_2ex_1int_1s(1: i64 i, 2: string s) throws(1: moderate_disaster err1, 2:total_disaster err2)
 
-	struct_a struct_a_func_1struct_a(1: struct_a st)
+    struct_a struct_a_func_1struct_a(1: struct_a st)
 
 }
diff --git a/lib/hs/Makefile.am b/lib/hs/Makefile.am
index 3c891f4..54e4bc9 100755
--- a/lib/hs/Makefile.am
+++ b/lib/hs/Makefile.am
@@ -26,17 +26,17 @@
   src
 
 all-local:
-	$(CABAL) install
+    $(CABAL) install
 
 install-exec-hook:
-	$(CABAL) install
+    $(CABAL) install
 
 # Make sure this doesn't fail if Haskell is not configured.
 clean-local:
-	$(CABAL) clean
+    $(CABAL) clean
 
 maintainer-clean-local:
-	$(CABAL) clean
+    $(CABAL) clean
 
 check-local:
-	$(CABAL) check
+    $(CABAL) check
diff --git a/lib/java/Makefile.am b/lib/java/Makefile.am
index cbec7af..e93f43e 100644
--- a/lib/java/Makefile.am
+++ b/lib/java/Makefile.am
@@ -20,23 +20,23 @@
 export CLASSPATH
 
 all-local:
-	$(ANT) $(ANT_FLAGS)
+    $(ANT) $(ANT_FLAGS)
 
 install-exec-hook:
-	$(ANT) $(ANT_FLAGS) install -Dinstall.path=$(DESTDIR)$(JAVA_PREFIX) \
-		-Dinstall.javadoc.path=$(DESTDIR)$(docdir)/java
+    $(ANT) $(ANT_FLAGS) install -Dinstall.path=$(DESTDIR)$(JAVA_PREFIX) \
+        -Dinstall.javadoc.path=$(DESTDIR)$(docdir)/java
 
 # Make sure this doesn't fail if ant is not configured.
 clean-local:
-	ANT=$(ANT) ; if test -z "$$ANT" ; then ANT=: ; fi ; \
-	$$ANT $(ANT_FLAGS) clean
+    ANT=$(ANT) ; if test -z "$$ANT" ; then ANT=: ; fi ; \
+    $$ANT $(ANT_FLAGS) clean
 
 check-local: all
-	$(ANT) $(ANT_FLAGS) test
+    $(ANT) $(ANT_FLAGS) test
 
 EXTRA_DIST = \
-	build.xml \
-	build.properties \
-	src \
-	test \
-	README.md
\ No newline at end of file
+    build.xml \
+    build.properties \
+    src \
+    test \
+    README.md
\ No newline at end of file
diff --git a/lib/js/test/Makefile.am b/lib/js/test/Makefile.am
index 14927c4..d8f1159 100755
--- a/lib/js/test/Makefile.am
+++ b/lib/js/test/Makefile.am
@@ -21,9 +21,9 @@
 
 # Make sure this doesn't fail if ant is not configured.
 clean-local:
-	ANT=$(ANT) ; if test -z "$$ANT" ; then ANT=: ; fi ; \
-	$$ANT $(ANT_FLAGS) clean
+    ANT=$(ANT) ; if test -z "$$ANT" ; then ANT=: ; fi ; \
+    $$ANT $(ANT_FLAGS) clean
 
 check-local: all
-	$(ANT) $(ANT_FLAGS) test
+    $(ANT) $(ANT_FLAGS) test
 
diff --git a/lib/lua/Makefile.am b/lib/lua/Makefile.am
index 364a25d..fe6c936 100644
--- a/lib/lua/Makefile.am
+++ b/lib/lua/Makefile.am
@@ -20,14 +20,14 @@
 SUBDIRS = .
 
 lib_LTLIBRARIES = \
-			libluasocket.la \
-			libluabpack.la \
-			libluabitwise.la \
-			liblualongnumber.la
+            libluasocket.la \
+            libluabpack.la \
+            libluabitwise.la \
+            liblualongnumber.la
 
 libluasocket_la_SOURCES = \
-			src/luasocket.c \
-			src/usocket.c
+            src/luasocket.c \
+            src/usocket.c
 
 nobase_include_HEADERS = src/socket.h
 
@@ -46,18 +46,18 @@
 libluabitwise_la_LDFLAGS = $(AM_LDFLAGS) -llua5.2 -lm
 
 liblualongnumber_la_SOURCES = \
-		src/lualongnumber.c \
-		src/longnumberutils.c
+        src/lualongnumber.c \
+        src/longnumberutils.c
 
 liblualongnumber_la_CPPFLAGS = $(AM_CPPFLAGS) -I/usr/include/lua5.2 -DLUA_COMPAT_MODULE
 liblualongnumber_la_LDFLAGS = $(AM_LDFLAGS) -llua5.2 -lm
 
 EXTRA_DIST = TBinaryProtocol.lua \
-		TBufferedTransport.lua \
-		TFramedTransport.lua \
-		Thrift.lua \
-		TMemoryBuffer.lua \
-		TProtocol.lua \
-		TServer.lua \
-		TSocket.lua \
-		TTransport.lua
\ No newline at end of file
+        TBufferedTransport.lua \
+        TFramedTransport.lua \
+        Thrift.lua \
+        TMemoryBuffer.lua \
+        TProtocol.lua \
+        TServer.lua \
+        TSocket.lua \
+        TTransport.lua
\ No newline at end of file
diff --git a/lib/nodejs/Makefile.am b/lib/nodejs/Makefile.am
index 3868905..bdd6ca2 100755
--- a/lib/nodejs/Makefile.am
+++ b/lib/nodejs/Makefile.am
@@ -19,20 +19,20 @@
 THRIFT = $(top_srcdir)/compiler/cpp/thrift
 
 #stubs: $(top_srcdir)/test/ThriftTest.thrift
-#	$(THRIFT) --gen js:node -o test/ $(top_srcdir)/test/ThriftTest.thrift
+#    $(THRIFT) --gen js:node -o test/ $(top_srcdir)/test/ThriftTest.thrift
 
 deps: package.json
-	$(NPM) install --no-bin-links
+    $(NPM) install --no-bin-links
 
 check: deps
-	$(NPM) test
+    $(NPM) test
 
 clean-local:
-	$(RM) -r test/gen-nodejs
+    $(RM) -r test/gen-nodejs
 
 EXTRA_DIST = \
-	examples \
-	lib \
-	package.json \
-	test \
-	README.md
+    examples \
+    lib \
+    package.json \
+    test \
+    README.md
diff --git a/lib/nodejs/examples/user.thrift b/lib/nodejs/examples/user.thrift
index ee260e5..d087fd4 100644
--- a/lib/nodejs/examples/user.thrift
+++ b/lib/nodejs/examples/user.thrift
@@ -14,7 +14,7 @@
 # KIND, either express or implied. See the License for the
 # specific language governing permissions and limitations
 # under the License.
- 
+
 struct UserProfile {
   1: i32 uid,
   2: string name,
diff --git a/lib/perl/Makefile.am b/lib/perl/Makefile.am
index 067ed69..26f7c07 100644
--- a/lib/perl/Makefile.am
+++ b/lib/perl/Makefile.am
@@ -20,37 +20,37 @@
 SUBDIRS = test
 
 Makefile-perl.mk : Makefile.PL
-	$(PERL) Makefile.PL MAKEFILE=Makefile-perl.mk INSTALLDIRS=$(INSTALLDIRS) INSTALL_BASE=$(PERL_PREFIX)
+    $(PERL) Makefile.PL MAKEFILE=Makefile-perl.mk INSTALLDIRS=$(INSTALLDIRS) INSTALL_BASE=$(PERL_PREFIX)
 
 all-local: Makefile-perl.mk
-	$(MAKE) -f Makefile-perl.mk
-	find blib -name 'Makefile*' -exec rm -f {} \;
+    $(MAKE) -f Makefile-perl.mk
+    find blib -name 'Makefile*' -exec rm -f {} \;
 
 check-local:
-	$(PERL) -Iblib/lib -I@abs_srcdir@ -I@builddir@/test/gen-perl \
-		@abs_srcdir@/test.pl @abs_srcdir@/test/*.t
+    $(PERL) -Iblib/lib -I@abs_srcdir@ -I@builddir@/test/gen-perl \
+        @abs_srcdir@/test.pl @abs_srcdir@/test/*.t
 
 install-exec-local: Makefile-perl.mk
-	$(MAKE) -f Makefile-perl.mk install DESTDIR=$(DESTDIR)/
+    $(MAKE) -f Makefile-perl.mk install DESTDIR=$(DESTDIR)/
 
 clean-local:
-	if test -f Makefile-perl.mk ; then \
-		$(MAKE) -f Makefile-perl.mk clean ; \
-	fi
-	rm -f Makefile-perl.mk.old
+    if test -f Makefile-perl.mk ; then \
+        $(MAKE) -f Makefile-perl.mk clean ; \
+    fi
+    rm -f Makefile-perl.mk.old
 
 EXTRA_DIST = \
-	Makefile.PL \
-	test.pl \
-	lib/Thrift.pm \
-	lib/Thrift.pm \
-	lib/Thrift/BinaryProtocol.pm \
-	lib/Thrift/BufferedTransport.pm \
-	lib/Thrift/FramedTransport.pm \
-	lib/Thrift/HttpClient.pm \
-	lib/Thrift/MemoryBuffer.pm \
-	lib/Thrift/Protocol.pm \
-	lib/Thrift/Server.pm \
-	lib/Thrift/Socket.pm \
-	lib/Thrift/Transport.pm \
-	README.md
+    Makefile.PL \
+    test.pl \
+    lib/Thrift.pm \
+    lib/Thrift.pm \
+    lib/Thrift/BinaryProtocol.pm \
+    lib/Thrift/BufferedTransport.pm \
+    lib/Thrift/FramedTransport.pm \
+    lib/Thrift/HttpClient.pm \
+    lib/Thrift/MemoryBuffer.pm \
+    lib/Thrift/Protocol.pm \
+    lib/Thrift/Server.pm \
+    lib/Thrift/Socket.pm \
+    lib/Thrift/Transport.pm \
+    README.md
diff --git a/lib/perl/test/Makefile.am b/lib/perl/test/Makefile.am
index 795aaed..6a20319 100644
--- a/lib/perl/test/Makefile.am
+++ b/lib/perl/test/Makefile.am
@@ -23,9 +23,9 @@
 check-local: gen-perl/ThriftTest/Types.pm
 
 gen-perl/ThriftTest/Types.pm: $(THRIFT_IF)
-	$(THRIFT) --gen perl $(THRIFT_IF)
+    $(THRIFT) --gen perl $(THRIFT_IF)
 
 clean-local:
-	rm -rf gen-perl
+    rm -rf gen-perl
 
 EXTRA_DIST = memory_buffer.t processor.t
diff --git a/lib/php/Makefile.am b/lib/php/Makefile.am
index e9d673c..da8ffdd 100755
--- a/lib/php/Makefile.am
+++ b/lib/php/Makefile.am
@@ -24,7 +24,7 @@
 
 if WITH_PHP_EXTENSION
 %.so:
-	cd src/ext/thrift_protocol/ && $(MAKE)
+    cd src/ext/thrift_protocol/ && $(MAKE)
 
 phpconfdir=$(PHP_CONFIG_PREFIX)
 phpconf_DATA=thrift_protocol.ini
diff --git a/lib/php/test/Makefile.am b/lib/php/test/Makefile.am
index a529d8c..66e69d5 100755
--- a/lib/php/test/Makefile.am
+++ b/lib/php/test/Makefile.am
@@ -20,29 +20,29 @@
 THRIFT = $(top_builddir)/compiler/cpp/thrift
 
 stubs: ../../../test/ThriftTest.thrift  TestValidators.thrift
-	mkdir -p ./packages
-	$(THRIFT) --gen php -r --out ./packages ../../../test/ThriftTest.thrift
-	mkdir -p ./packages/phpv
-	mkdir -p ./packages/phpvo
-	$(THRIFT) --gen php:validate     -r --out ./packages/phpv   TestValidators.thrift 
-	$(THRIFT) --gen php:validate,oop -r --out ./packages/phpvo  TestValidators.thrift 
-	
-check-validator: stubs 
-	php Test/Thrift/TestValidators.php 
-	php Test/Thrift/TestValidators.php -oop 
+    mkdir -p ./packages
+    $(THRIFT) --gen php -r --out ./packages ../../../test/ThriftTest.thrift
+    mkdir -p ./packages/phpv
+    mkdir -p ./packages/phpvo
+    $(THRIFT) --gen php:validate     -r --out ./packages/phpv   TestValidators.thrift
+    $(THRIFT) --gen php:validate,oop -r --out ./packages/phpvo  TestValidators.thrift
 
-check-protocol:	stubs
+check-validator: stubs
+    php Test/Thrift/TestValidators.php
+    php Test/Thrift/TestValidators.php -oop
+
+check-protocol:    stubs
 if HAVE_PHPUNIT
-	$(PHPUNIT) --log-junit=phpunit.xml Test/Thrift/Protocol/TestTJSONProtocol.php
-	$(PHPUNIT) --log-junit=phpunit.xml Test/Thrift/Protocol/TestBinarySerializer.php
+    $(PHPUNIT) --log-junit=phpunit.xml Test/Thrift/Protocol/TestTJSONProtocol.php
+    $(PHPUNIT) --log-junit=phpunit.xml Test/Thrift/Protocol/TestBinarySerializer.php
 endif
-	
+
 check: stubs \
   check-protocol \
   check-validator
 
 clean-local:
-	$(RM) -r ./packages
+    $(RM) -r ./packages
 
 EXTRA_DIST = Test
 
diff --git a/lib/php/test/TestValidators.thrift b/lib/php/test/TestValidators.thrift
index d0ed9cc..9c38d92 100644
--- a/lib/php/test/TestValidators.thrift
+++ b/lib/php/test/TestValidators.thrift
@@ -18,13 +18,13 @@
  */
 
 namespace php TestValidators
- 
+
 include "../../../test/ThriftTest.thrift"
 
-union UnionOfStrings { 
-  1: string aa; 
-  2: string bb; 
-} 
+union UnionOfStrings {
+  1: string aa;
+  2: string bb;
+}
 
 service TestService {
     void test() throws(1: ThriftTest.Xception xception);
diff --git a/lib/py/Makefile.am b/lib/py/Makefile.am
index a504b5c..d3e55fe 100755
--- a/lib/py/Makefile.am
+++ b/lib/py/Makefile.am
@@ -20,23 +20,23 @@
 DESTDIR ?= /
 
 all-local:
-	$(PYTHON) setup.py build
+    $(PYTHON) setup.py build
 
 # We're ignoring prefix here because site-packages seems to be
 # the equivalent of /usr/local/lib in Python land.
 # Old version (can't put inline because it's not portable).
 #$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) $(PYTHON_SETUPUTIL_ARGS)
 install-exec-hook:
-	$(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(PY_PREFIX) $(PYTHON_SETUPUTIL_ARGS)
+    $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(PY_PREFIX) $(PYTHON_SETUPUTIL_ARGS)
 
 clean-local:
-	$(RM) -r build
+    $(RM) -r build
 
 check-local: all
 
 EXTRA_DIST = \
-	compat \
-	setup.py \
-	setup.cfg \
-	src \
-	README.md
+    compat \
+    setup.py \
+    setup.cfg \
+    src \
+    README.md
diff --git a/lib/rb/Makefile.am b/lib/rb/Makefile.am
index 2d0c12e..fc75146 100755
--- a/lib/rb/Makefile.am
+++ b/lib/rb/Makefile.am
@@ -22,28 +22,28 @@
 if HAVE_BUNDLER
 
 all-local:
-	$(BUNDLER) install
-	$(BUNDLER) exec rake
+    $(BUNDLER) install
+    $(BUNDLER) exec rake
 
 install-exec-hook:
-	$(BUNDLER) exec rake install
+    $(BUNDLER) exec rake install
 
 clean-local:
-	$(BUNDLER) exec rake clean
+    $(BUNDLER) exec rake clean
 
 check-local: all
-	$(BUNDLER) install
-	$(BUNDLER) exec rake
+    $(BUNDLER) install
+    $(BUNDLER) exec rake
 
 endif
 
 EXTRA_DIST = \
-	Rakefile \
-	Gemfile \
-	thrift.gemspec \
-	lib \
-	ext \
-	benchmark \
-	script \
-	spec \
-	README.md
+    Rakefile \
+    Gemfile \
+    thrift.gemspec \
+    lib \
+    ext \
+    benchmark \
+    script \
+    spec \
+    README.md