diff options
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | src/ast.rs | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -2,7 +2,7 @@ [package] name = "germ" -version = "0.2.7" +version = "0.2.8" authors = ["Fuwn <[email protected]>"] edition = "2021" description = "The Ultimate Gemini Toolkit." @@ -364,7 +364,11 @@ impl Ast { list_items.push(line.get(1..).unwrap_or("").trim_start().to_string()); - line = lines.next().unwrap(); + if let Some(next_line) = lines.next() { + line = next_line; + } else { + break; + } } ">" => { // If the Gemtext line starts with an ">", it is a blockquote, so |