Skip to content

Commit 77db90d

Browse files
authored
Fix __doc__ string processing (#1044)
1 parent a170ce8 commit 77db90d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Src/IronPython/Runtime/Types/DocBuilder.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,11 +733,12 @@ private static string XmlToString(XPathNodeIterator iter) {
733733
switch (xr.Name) {
734734
case "see":
735735
if (xr.MoveToFirstAttribute() && xr.ReadAttributeValue()) {
736+
int prefixlen = xr.Value.IndexOf(':') + 1;
736737
int arity = xr.Value.IndexOf(ReflectionUtils.GenericArityDelimiter);
737738
if (arity != -1)
738-
text.Append(xr.Value, 2, arity - 2);
739+
text.Append(xr.Value, prefixlen, arity - prefixlen);
739740
else
740-
text.Append(xr.Value, 2, xr.Value.Length - 2);
741+
text.Append(xr.Value, prefixlen, xr.Value.Length - prefixlen);
741742
}
742743
break;
743744
case "paramref":

0 commit comments

Comments
 (0)