Parser - fix for pushing wrong line type when leaving preformatted block
This commit is contained in:
parent
c36009db46
commit
4b43b283dd
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ impl<'a> Parser<'a> {
|
||||||
match &self.state {
|
match &self.state {
|
||||||
State::Preformatted(v) => {
|
State::Preformatted(v) => {
|
||||||
let s = v.lines.join("\n").to_string();
|
let s = v.lines.join("\n").to_string();
|
||||||
self.lines.push(GemtextNode::Text(s));
|
self.lines.push(GemtextNode::Preformatted(v.alt.map(str::to_string), s));
|
||||||
self.state = State::Normal;
|
self.state = State::Normal;
|
||||||
}
|
}
|
||||||
_ => panic!("Attempted to leave preformatted mode when not in preformatted mode"),
|
_ => panic!("Attempted to leave preformatted mode when not in preformatted mode"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue