We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac8b1da commit da77365Copy full SHA for da77365
godot-core/src/docs.rs
@@ -112,10 +112,12 @@ pub fn gather_xml_docs() -> impl Iterator<Item = String> {
112
.then(String::new)
113
.unwrap_or_else(|| format!("<methods>{methods}{virtual_methods}</methods>"));
114
115
- let brief = description
116
- .split_once("[br]")
117
- .map(|(x, _)| x)
118
- .unwrap_or_default();
+ let (brief, mut description) = match description
+ .split_once("[br]") {
+ Some((brief, description)) => (brief, description),
+ None => (description, ""),
119
+ };
120
+ description = description.trim_start_matches("[br]");
121
122
format!(r#"<?xml version="1.0" encoding="UTF-8"?>
123
<class name="{class}" inherits="{base}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
0 commit comments