From 0b6f5287343b98c947fdb5340bb28b03200675a2 Mon Sep 17 00:00:00 2001 From: Derek Bankieris Date: Wed, 30 Jan 2019 09:18:16 -0600 Subject: [PATCH] Strip whitespace from #includes in convert_swig Fixes #722 --- bin/convert_swig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/convert_swig b/bin/convert_swig index 6e7ef6b1..190f044d 100755 --- a/bin/convert_swig +++ b/bin/convert_swig @@ -374,7 +374,8 @@ sub process_file($$) { if ( /^(\s*\#\s*include\s+)([^\n]+)/ ) { my ( $include ) = $1 ; - my ( $file_name ) = $2 ; + ( my $file_name = $2 ) =~ s/^\s+|\s+$//g ; # Strip leading & trailing whitespace + if ( $file_name !~ /\