Aidan Garnish

Collaboration Not Competition

Naughty SharePoint Designer

SharePoint Designer keeps adding spaces ( ) to my HTML in page layouts. This is particularly annoying as I am working to a web design that has been produced at great expense and the customer quite rightly expects that the developed website will match this exactly.

 Unfortunately when I want:

<li>
        <h4><PublishingWebControls:RichLinkField ID="RichLinkField1" FieldName="ByProductType1" runat="server"></PublishingWebControls:RichLinkField></h4>
        <p><SharePointWebControls:TextField ID="TextField4" FieldName="ByProductTypeDesc1"
runat="server"></SharePointWebControls:TextField></p>
</li>

What I get is:

<li>
 <h4>&nbsp;<PublishingWebControls:RichLinkField ID="RichLinkField1" FieldName="ByProductType1" runat="server"></PublishingWebControls:RichLinkField></h4>
 <p>&nbsp;<SharePointWebControls:TextField ID="TextField4" FieldName="ByProductTypeDesc1" runat="server"></SharePointWebControls:TextField></p>
</li>

Hopefully this will be fixed in a service pack but for now I am having to edit my page layouts in Visual Studio and then drag and drop the aspx file into the masterpage library within SharePoint designer. The HTML editor in Visual Studio is much better behaved and does not add in the unwanted spaces.

theKid has found another issue, which I have not experienced, with closing tags being lost by SharePoint designer. Read more about that here...

 

Add comment

Loading