Merge branch 'binding_generator_doc_fixes' of git://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-binding_generator_doc_fixes

This commit is contained in:
Wojtek Figat
2021-05-28 09:53:59 +02:00
2 changed files with 3 additions and 4 deletions

View File

@@ -745,7 +745,7 @@ API_ENUM() enum class KeyboardKeys
LeftBracket = 0xDB,
/// <summary>
/// Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard the '\\|' key
/// Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard the '\|' key
/// </summary>
Backslash = 0xDC,

View File

@@ -471,9 +471,8 @@ namespace Flax.Build.Bindings
if (comment[i - 1].StartsWith("/// "))
tooltip += " " + comment[i - 1].Substring(4);
}
if (tooltip.IndexOf('\"') != -1)
tooltip = tooltip.Replace("\"", "\\\"");
contents.Append(indent).Append("[Tooltip(\"").Append(tooltip).Append("\")]").AppendLine();
tooltip = tooltip.Replace("\"", "\"\"");
contents.Append(indent).Append("[Tooltip(@\"").Append(tooltip).Append("\")]").AppendLine();
}
}
if (writeDefaultValue)