From aa18aab4a04bca3d8950f0bf67d47aec27fea6bb Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Tue, 7 Sep 2010 09:19:31 +0000 Subject: [PATCH] Follow-up fix for bug 323971 - don't indent inside string --- .../src/org/eclipse/cdt/internal/ui/actions/IndentAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/actions/IndentAction.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/actions/IndentAction.java index 0791cd2f761..e49283c0e25 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/actions/IndentAction.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/actions/IndentAction.java @@ -216,7 +216,7 @@ public class IndentAction extends TextEditorAction { indent= computePreprocessorIndent(document, line, startingPartition); } else if (startingPartition.getType().equals(ICPartitions.C_STRING) && offset > startingPartition.getOffset()) { // don't indent inside (raw-)string - indent = ""; //$NON-NLS-1$ + return false; } else if (!fIsTabAction && startingPartition.getOffset() == offset && startingPartition.getType().equals(ICPartitions.C_SINGLE_LINE_COMMENT)) { // line comment starting at position 0 -> indent inside if (indentInsideLineComments()) {