Badly formatted code blocks

Nov 11, 2011 at 11:04 PM

After upgrading to Sandcastle 2.6 and SHFB 1.9.0.3, 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:

        1
        |

        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?
Thanks!
Editor
Nov 12, 2011 at 1: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.

Eric