From ec1bf3987fd0d3f236faa135f26f2bb30ff8b319 Mon Sep 17 00:00:00 2001 From: Nitin Dahyabhai Date: Mon, 17 Feb 2020 16:51:39 -0500 Subject: [wwd/357] Unable to indent blocks of code Signed-off-by: Nitin Dahyabhai --- .../eclipse/wst/sse/core/internal/text/BasicStructuredDocument.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/text/BasicStructuredDocument.java b/core/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/text/BasicStructuredDocument.java index c19d9a06f4..0f1d43a58f 100644 --- a/core/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/text/BasicStructuredDocument.java +++ b/core/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/text/BasicStructuredDocument.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2001, 2011 IBM Corporation and others. + * Copyright (c) 2001, 2020 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at @@ -1053,7 +1053,7 @@ public class BasicStructuredDocument implements IStructuredDocument, IDocumentEx return ((IDocumentPartitionerExtension2) partitioner).computePartitioning(offset, length, includeZeroLengthPartitions); else if (partitioner != null) return partitioner.computePartitioning(offset, length); - else if (IStructuredPartitioning.DEFAULT_STRUCTURED_PARTITIONING.equals(partitioning)) + else if (IStructuredPartitioning.DEFAULT_STRUCTURED_PARTITIONING.equals(partitioning) || DEFAULT_PARTITIONING.equals(partitioning)) return new TypedRegion[]{new TypedRegion(offset, length, DEFAULT_CONTENT_TYPE)}; else throw new BadPartitioningException(); -- cgit v1.2.3