Line indentation in a code block


If a code snippet inside of a <code> block starts with a <token> element, new lines will be indented. For example, in the usage information, I use a token element to hold the name of the program executable, such as:

/// <example>
/// <code language="none">
/// <token>FILENAME</token> /a:sometext
/// /b:moretexts
/// /c:evenmoretexts
/// </code>
/// </example>

In the generated CHM file, the second and third lines (/b:moretext and /c:evenmoretext) appear indented.

If I use a hard coded value instead of the token element in the first line, then all lines appear left aligned (as expected) in the CHM file. I am using the latest (as of the time of posting) version of Sandcastle and the Code Block component. This does seem like a bug.
Closed Jan 26, 2015 at 6:21 AM by EWoodruff
Moved to GitHub