diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ast/container.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/container.rs b/src/ast/container.rs index 00118bb..c890100 100644 --- a/src/ast/container.rs +++ b/src/ast/container.rs @@ -198,7 +198,7 @@ impl Ast { "=" if !*in_preformatted => { // If the Gemtext line starts with an "=" ("=>"), it is a link line, // so splitting it up should be easy enough. - let line = line.get(2..).unwrap(); + let line = line.get(2..).unwrap_or(""); let mut split = line .split_whitespace() .map(String::from) |