schema_to_emmylua 0.1.0

A tool to convert JSON schema to EmmyLua annotations.
Documentation
1
2
3
4
5
/// Converts a documentation/description string to a cleaned-up Lua doc comment.
/// Removes excessive whitespace and normalizes line breaks.
pub fn sanitize_description(desc: &str) -> String {
    desc.trim().to_string()
}