mirror of
https://github.com/orhun/systeroid
synced 2024-07-22 02:45:19 +00:00
style(docs): trim the start of the documents
This commit is contained in:
parent
0a2a8fbedc
commit
d4768c5695
|
@ -42,12 +42,16 @@ impl Paragraph {
|
|||
.next()
|
||||
.flatten()
|
||||
.ok_or(Error::CaptureError)?;
|
||||
(input[content_capture.end()..next_capture.start()])
|
||||
.trim()
|
||||
.to_string()
|
||||
(input[content_capture.end()..next_capture.start()]).to_string()
|
||||
} else {
|
||||
(input[content_capture.end()..]).trim().to_string()
|
||||
},
|
||||
(input[content_capture.end()..]).to_string()
|
||||
}
|
||||
.lines()
|
||||
.map(|v| v.trim_start_matches('\t'))
|
||||
.collect::<Vec<&str>>()
|
||||
.join("\n")
|
||||
.trim()
|
||||
.to_string(),
|
||||
));
|
||||
}
|
||||
Ok(paragraphs)
|
||||
|
|
Loading…
Reference in a new issue