2
Vote

Conceptual: codeEntityReference is sensitive to space

description

The <codeEntityReference/> so sensitive to space that any of the following will not work:

<codeEntityReference> T:System.Int32</codeEntityReference>

<codeEntityReference>T:System.Int32 </codeEntityReference>

<codeEntityReference>T:System.Int32

</codeEntityReference>

<codeEntityReference>

T:System.Int32</codeEntityReference>

<codeEntityReference>

T:System.Int32
</codeEntityReference>

comments

EWoodruff wrote Jun 1, 2008 at 6:26 AM

Not fixed by the May 2008 release. Apply the following patch to fix it:

In the codeEntityReference template in Presentation\shared\utilities_ddue.xml, add a call to normalize-space() around the two occurrences of "string(.)":
  <xsl:template match="ddue:codeEntityReference">
    <span sdata="cer" target="{normalize-space(string(.))}">
    <referenceLink target="{normalize-space(string(.))}">
    ... the rest is the same ...