From e121342247e964bd6a697135efeabd62c24266c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81dric=20Verhaeghe?= Date: Mon, 24 Jul 2017 16:12:21 +0200 Subject: [PATCH] Avoid excessive amount of newlines in merged raml file --- ramlMerge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ramlMerge.php b/ramlMerge.php index c0dd26b..3b53f95 100644 --- a/ramlMerge.php +++ b/ramlMerge.php @@ -13,7 +13,7 @@ function doInclude ($file, $tabIndex = '') { $contents = $tabIndex . str_replace("\n", "\n" . $tabIndex, $contents); } - $contents = preg_replace_callback('/(([\s\t]*)([a-z0-9_\/\-]+)):[\s]+\!include ([^\s]+)/i', + $contents = preg_replace_callback('/(([ \t]*)([a-z0-9_\/\-]+)):[\s]+\!include ([^\s]+)/i', function($matches) { $property = $matches[3]; $spacing = $matches[2];