From e8d4777d7420998d09a45c8b8adb1b503cec43ce Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 6 May 2015 17:36:46 +1000 Subject: [PATCH] re-formatted some of the PR --- .../ValueConverters/RteMacroRenderingValueConverter.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs b/src/Umbraco.Web/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs index d37ec518c7..2802a4d631 100644 --- a/src/Umbraco.Web/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs +++ b/src/Umbraco.Web/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs @@ -8,12 +8,11 @@ using Umbraco.Core.PropertyEditors; using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.PropertyEditors.ValueConverters; using Umbraco.Web.Templates; +using System.Linq; +using HtmlAgilityPack; namespace Umbraco.Web.PropertyEditors.ValueConverters { - using System.Linq; - - using HtmlAgilityPack; /// /// A value converter for TinyMCE that will ensure any macro content is rendered properly even when @@ -82,7 +81,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters var doc = new HtmlDocument(); doc.LoadHtml(sourceString); - if (!doc.ParseErrors.Any() && doc.DocumentNode != null) + if (doc.ParseErrors.Any() == false && doc.DocumentNode != null) { // Find all images with rel attribute var imgNodes = doc.DocumentNode.SelectNodes("//img[@rel]");