From 3e1087ff5899997978393bc399f10fafa361640e Mon Sep 17 00:00:00 2001 From: Sergio Navarro Date: Tue, 14 Jul 2015 20:51:29 +0200 Subject: [PATCH] Update ShapePlacementParsingStrategy.cs --- .../ShapePlacementParsingStrategy.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Orchard/DisplayManagement/Descriptors/ShapePlacementStrategy/ShapePlacementParsingStrategy.cs b/src/Orchard/DisplayManagement/Descriptors/ShapePlacementStrategy/ShapePlacementParsingStrategy.cs index ff9894db0..00cca9e4e 100644 --- a/src/Orchard/DisplayManagement/Descriptors/ShapePlacementStrategy/ShapePlacementParsingStrategy.cs +++ b/src/Orchard/DisplayManagement/Descriptors/ShapePlacementStrategy/ShapePlacementParsingStrategy.cs @@ -107,22 +107,19 @@ namespace Orchard.DisplayManagement.Descriptors.ShapePlacementStrategy { } } - private void GetShapeType(PlacementShapeLocation shapeLocation, out string shapeType, out string differentiator) - { + private void GetShapeType(PlacementShapeLocation shapeLocation, out string shapeType, out string differentiator) { differentiator = ""; shapeType = shapeLocation.ShapeType; var separatorLengh = 2; var separatorIndex = shapeType.LastIndexOf("__"); var dashIndex = shapeType.LastIndexOf('-'); - if (dashIndex > separatorIndex) - { + if (dashIndex > separatorIndex) { separatorIndex = dashIndex; separatorLengh = 1; } - if (separatorIndex > 0 && separatorIndex < shapeType.Length - separatorLengh) - { + if (separatorIndex > 0 && separatorIndex < shapeType.Length - separatorLengh) { differentiator = shapeType.Substring(separatorIndex + separatorLengh); shapeType = shapeType.Substring(0, separatorIndex); }