Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow backslash in package readme specifications #1386

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions services/autorust/codegen/src/config_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ mod literate_config {
let yaml = extract_yaml(node)?
.ok_or_else(|| Error::message(ErrorKind::Parse, "Expected configuration tag to contain a YAML code block."))?;
let mut tag: Tag = serde_yaml::from_str(&yaml).context(ErrorKind::Parse, "reading configuration block yaml")?;
for input_file in tag.input_files.iter_mut() {
*input_file = input_file.replace('\\', "/");
}
tag.tag = tag_name;
tags.push(tag);
} else if is_header_at_level(node, 2) {
Expand Down