mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
remove extra vector implementation
This commit is contained in:
parent
cf63416e05
commit
9b22bd9eee
1 changed files with 4 additions and 4 deletions
|
|
@ -105,15 +105,15 @@ impl Gemini {
|
||||||
|
|
||||||
// Disable multiline format on at least one closing tag not found
|
// Disable multiline format on at least one closing tag not found
|
||||||
let is_multiline_enabled = {
|
let is_multiline_enabled = {
|
||||||
let mut m = Vec::new();
|
let mut t = 0;
|
||||||
for (i, l) in gemtext.lines().enumerate() {
|
for l in gemtext.lines() {
|
||||||
if (l.starts_with(multiline::TAG) || l.ends_with(multiline::TAG))
|
if (l.starts_with(multiline::TAG) || l.ends_with(multiline::TAG))
|
||||||
&& Inline::from(l).is_none()
|
&& Inline::from(l).is_none()
|
||||||
{
|
{
|
||||||
m.push(i);
|
t += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m.is_empty() || m.len() % 2 == 0
|
t == 0 || t % 2 == 0
|
||||||
};
|
};
|
||||||
|
|
||||||
// Parse gemtext lines
|
// Parse gemtext lines
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue