convert markers to lowercase

This commit is contained in:
Alex Baines 2017-03-24 23:45:39 +00:00
parent 20ae5e8c1d
commit 769c79b0af
1 changed files with 4 additions and 2 deletions

View File

@ -231,6 +231,10 @@ HMML_Output hmml_parse_file(FILE* f){
a->marker_count = sb_count(a->markers);
a->reference_count = sb_count(a->references);
for(size_t j = 0; j < sb_count(a->markers); ++j){
for(char* c = a->markers[j].marker; *c; ++c) *c = tolower(*c);
}
if(a->is_quote && a->quote.author){
sb_push(a->quote.author, 0);
}
@ -359,8 +363,6 @@ void hmml_dump(HMML_Output* hmml){
max_text_len = len;
}
for(char* c = text; *c; ++c) *c = tolower(*c);
Index* idx;
if(!(idx = index_find(markers[type], text))){
Index x = { text };