fixed formatting

This commit is contained in:
Simon Kellet 2026-07-06 20:47:45 +01:00
parent 178815cefe
commit 10d383e4c2
3 changed files with 6 additions and 12 deletions

View File

@ -72,14 +72,8 @@ main :: proc() {
end := time.tick_since(start) end := time.tick_since(start)
os.write_string(file, "<br><footer><hr />This site was generated με αγάπη on ") os.write_string(file, "<br><footer><hr />This site was generated με αγάπη on ")
os.write_string( os.write_string(file, fmt.aprintf("%s ", time.to_string_dd_mm_yy(date, buf[:]), allocator = arena_alloc))
file, os.write_string(file, fmt.aprintf("in %v ", time.duration_round(end, time.Nanosecond), allocator = arena_alloc))
fmt.aprintf("%s ", time.to_string_dd_mm_yy(date, buf[:]), allocator = arena_alloc),
)
os.write_string(
file,
fmt.aprintf("in %v ", time.duration_round(end, time.Nanosecond), allocator = arena_alloc),
)
os.write_string(file, "<font color=#ea76cb><3</font> </footer><br>") os.write_string(file, "<font color=#ea76cb><3</font> </footer><br>")
} }
} }

View File

@ -74,7 +74,7 @@ walk_tree :: proc(path: string) -> []u8 {
return nil return nil
} }
parse_file_md_to_html :: proc(filename: string, allocator := context.allocator) -> (parsed: string, err: os.Error) { parse_file_md_to_html :: proc(filename: string, allocator := context.allocator, ) -> (parsed: string, err: os.Error) {
str := os.read_entire_file_from_path(filename, allocator) or_return str := os.read_entire_file_from_path(filename, allocator) or_return
root := cm.parse_document_from_string(string(str), cm.DEFAULT_OPTIONS) root := cm.parse_document_from_string(string(str), cm.DEFAULT_OPTIONS)
//root := cm.parse_document(raw_data(str), len(str), cm.DEFAULT_OPTIONS) //root := cm.parse_document(raw_data(str), len(str), cm.DEFAULT_OPTIONS)