fixed formatting
This commit is contained in:
parent
178815cefe
commit
10d383e4c2
10
main.odin
10
main.odin
@ -72,14 +72,8 @@ main :: proc() {
|
||||
end := time.tick_since(start)
|
||||
|
||||
os.write_string(file, "<br><footer><hr />This site was generated με αγάπη on ")
|
||||
os.write_string(
|
||||
file,
|
||||
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, 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>")
|
||||
}
|
||||
}
|
||||
|
||||
@ -74,7 +74,7 @@ walk_tree :: proc(path: string) -> []u8 {
|
||||
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
|
||||
root := cm.parse_document_from_string(string(str), cm.DEFAULT_OPTIONS)
|
||||
//root := cm.parse_document(raw_data(str), len(str), cm.DEFAULT_OPTIONS)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user