From ff75ae80fa44dfc925064f7ca0169ac80997bc77 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Thu, 22 Nov 2018 23:46:49 +0000 Subject: Bug 540373: Cleanup: Remove trailing whitespace in properties files Command used: # Remove space at eol in comments find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^(#.*)[ \t]+$/\1/' {} + # Remove space at eol in blank lines find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^[ \t]+$//' {} + # Replace escaped spaces at eol with unicode find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\ $/\1\\u0020/' {} + # Replace unescaped spaces at eol with unicode find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\]) $/\1\\u0020/' {} + # Replace escaped tabs at eol with unicode find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\\t$/\1\\u0009/' {} + # Replace unescaped tabs at eol with unicode find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\t$/\1\\u0009/' {} + # Stage all changes git add -A . # trim any remaining whitespace and then identify and fixup # manually # Only dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/MessagesForDebugVM.properties # needed this due to missing newline at end of the file find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/[ \t]+$//' {} + Change-Id: I858f16891fe001f4f7e62d5a4f904146e891cd39 --- .../src/org/eclipse/cdt/internal/meson/ui/messages.properties | 4 ++-- .../eclipse/cdt/internal/meson/ui/wizards/wizardmessages.properties | 2 +- .../src/org/eclipse/cdt/meson/ui/properties/messages.properties | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'build/org.eclipse.cdt.meson.ui') diff --git a/build/org.eclipse.cdt.meson.ui/src/org/eclipse/cdt/internal/meson/ui/messages.properties b/build/org.eclipse.cdt.meson.ui/src/org/eclipse/cdt/internal/meson/ui/messages.properties index e721700e350..b8791cc83c0 100644 --- a/build/org.eclipse.cdt.meson.ui/src/org/eclipse/cdt/internal/meson/ui/messages.properties +++ b/build/org.eclipse.cdt.meson.ui/src/org/eclipse/cdt/internal/meson/ui/messages.properties @@ -7,7 +7,7 @@ # https://www.eclipse.org/legal/epl-2.0/ # # SPDX-License-Identifier: EPL-2.0 -# +# # Contributors: # Red Hat Inc. - initial implementation ################################################################################ @@ -28,7 +28,7 @@ MesonPreferencePage_Files=Toolchain Files MesonPreferencePage_Path=Toolchain File MesonPreferencePage_Remove=Remove MesonPreferencePage_Toolchain=Toolchain -MesonPropertyPage_FailedToStartMesonGui_Body=Failed to run the Meson GUI: +MesonPropertyPage_FailedToStartMesonGui_Body=Failed to run the Meson GUI:\u0020 MesonPropertyPage_FailedToStartMesonGui_Title=Failed to run Meson GUI MesonPropertyPage_LaunchMesonGui=Launch Meson GUI... NewMesonProjectWizard_Description=Specify properties of new Meson project. diff --git a/build/org.eclipse.cdt.meson.ui/src/org/eclipse/cdt/internal/meson/ui/wizards/wizardmessages.properties b/build/org.eclipse.cdt.meson.ui/src/org/eclipse/cdt/internal/meson/ui/wizards/wizardmessages.properties index 595a2514485..b155443a85a 100644 --- a/build/org.eclipse.cdt.meson.ui/src/org/eclipse/cdt/internal/meson/ui/wizards/wizardmessages.properties +++ b/build/org.eclipse.cdt.meson.ui/src/org/eclipse/cdt/internal/meson/ui/wizards/wizardmessages.properties @@ -7,7 +7,7 @@ # https://www.eclipse.org/legal/epl-2.0/ # # SPDX-License-Identifier: EPL-2.0 -# +# # Contributors: # Red Hat Inc. - Initial Contribution ################################################################################ diff --git a/build/org.eclipse.cdt.meson.ui/src/org/eclipse/cdt/meson/ui/properties/messages.properties b/build/org.eclipse.cdt.meson.ui/src/org/eclipse/cdt/meson/ui/properties/messages.properties index 4c1ae0b18b8..4190d44729e 100644 --- a/build/org.eclipse.cdt.meson.ui/src/org/eclipse/cdt/meson/ui/properties/messages.properties +++ b/build/org.eclipse.cdt.meson.ui/src/org/eclipse/cdt/meson/ui/properties/messages.properties @@ -7,7 +7,7 @@ # https://www.eclipse.org/legal/epl-2.0/ # # SPDX-License-Identifier: EPL-2.0 -# +# # Contributors: # Red Hat Inc. - initial implementation ################################################################################ -- cgit v1.2.3