Badly formatted code blocks

Nov 12, 2011 at 12:04 AM

After upgrading to Sandcastle 2.6 and SHFB, my code blocks all now output like the following, that is, with line 1 indented and line breaks following the line number and vertical bar and an empty line:


        Private Sub UIExtensionComposer_EventName _
2|   (ByVal sender As Object, ByVal e As EventArgs) _
3|   Handles MyBase.EventName
4|   ' TODO: Add your event handling code here.
5| End Sub
I've looked at the custom style sheet and transforms but don't see anything unusual. This only occurs with those code blocks with NumberLines set to True.
Anyone seen this before and can point me in the right direction or do I need to migrate my custom styles to new copies of the presentation files?
Nov 12, 2011 at 2:13 AM

You've probably got the SHFB project property IndentHtml set to true.  Set it to false so that it prevents that issue.  It's only for debugging purposes so it should be false unless you're developing a plug-in or build component that affects the generated HTML.