From: Martin Storsjo Date: Thu, 20 Mar 2014 06:12:29 +0000 (+0200) Subject: ads2armasm_ms: Match the indentation of the previous line X-Git-Tag: v1.4.0~2026 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1521eb8ba95d71eec1de44d56e4be1729e9c87a0;p=libvpx ads2armasm_ms: Match the indentation of the previous line Instead of hardcoding a certain indentation, use the regexp to provide similar indentation for the new line as well. Change-Id: Iacb2621b35ce7e1aa3980c1603b8e3ab02d98a35 --- diff --git a/build/make/ads2armasm_ms.pl b/build/make/ads2armasm_ms.pl index 61ffe8869..2a2c470ff 100755 --- a/build/make/ads2armasm_ms.pl +++ b/build/make/ads2armasm_ms.pl @@ -32,7 +32,7 @@ while () s/ldrneb/ldrbne/i; s/ldrneh/ldrhne/i; - s/(ENDP.*)/$&\n ALIGN 4/; + s/^(\s*)ENDP.*/$&\n$1ALIGN 4/; print; }