postgresql & new docs

This commit is contained in:
2025-01-01 17:44:06 +01:00
parent b927fc5b5d
commit 36f41150c2
83 changed files with 3175 additions and 3768 deletions

View File

@@ -120,21 +120,21 @@ fn (mut parser Parser) next() {
// move further and reset the state
fn (mut parser Parser) next_start() ! {
// means we need to add paragraph because we don't know what comes next
if parser.doc.last()!is elements.Paragraph {
if parser.doc.last() !is elements.Paragraph {
parser.doc.paragraph_new(mut parser.doc, '')
}
parser.next()
}
fn (mut parser Parser) next_start_lf() ! {
if parser.doc.last()!is elements.Paragraph {
if parser.doc.last() !is elements.Paragraph {
parser.doc.paragraph_new(mut parser.doc, '\n')
}
parser.next()
}
fn (mut parser Parser) ensure_last_is_paragraph() ! {
if parser.doc.last()!is elements.Paragraph {
if parser.doc.last() !is elements.Paragraph {
parser.doc.paragraph_new(mut parser.doc, '')
}
}