diff options
| author | Fuwn <[email protected]> | 2022-06-14 05:16:09 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-06-14 05:16:09 +0000 |
| commit | cdafacdee841676c637ed86efaa229dc9e5f525b (patch) | |
| tree | 79d1405def6bc1c672a4a99f9c31025447191656 /src | |
| parent | docs(cargo): bump version 0.2.6 -> 0.2.7 (diff) | |
| download | germ-0.2.8.tar.xz germ-0.2.8.zip | |
fix(ast): list ast construction0.2.8
Diffstat (limited to 'src')
| -rw-r--r-- | src/ast.rs | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |