if (entry_level >= level) {
// This entry is a direct descendant of the parent
- scratch->label_counter = (int)*counter;
+ scratch->label_counter = (int) * counter;
temp_char = label_from_header(source, entry, scratch);
printf("<li><a href=\"main.xhtml#%s\">", temp_char);
mmd_export_token_tree_html(out, source, entry->child, scratch);
} else {
print_char(c);
}
+
break;
default:
if (entry_level >= level) {
// This entry is a direct descendant of the parent
- scratch->label_counter = (int)*counter;
+ scratch->label_counter = (int) * counter;
temp_char = label_from_header(source, entry, scratch);
printf("<li><a href=\"#%s\">", temp_char);
mmd_export_token_tree_html(out, source, entry->child, scratch);
if (entry_level >= level) {
// This entry is a direct descendant of the parent
- scratch->label_counter = (int)*counter;
+ scratch->label_counter = (int) * counter;
temp_char = label_from_header(source, entry, scratch);
print_const("\\item ");
mmd_export_token_tree_latex(out, source, entry->child, scratch);
case TEXT_LINEBREAK_SP:
t = t->prev;
break;
+
case HASH1:
case HASH2:
case HASH3:
t->type += MARKER_H1;
t = NULL;
break;
+
default:
// Break out of loop
t = NULL;
} else {
print_char(c);
}
+
break;
case '\t':
if (entry_level >= level) {
// This entry is a direct descendant of the parent
- scratch->label_counter = (int)*counter;
+ scratch->label_counter = (int) * counter;
temp_char = label_from_header(source, entry, scratch);
printf("<text:p text:style-name=\"TOC_Item\"><text:a xlink:type=\"simple\" xlink:href=\"#%s\" text:style-name=\"Index_20_Link\" text:visited-style-name=\"Index_20_Link\">", temp_char);
mmd_export_token_tree_opendocument(out, source, entry->child, scratch);
temp_size = out->currentStringLength;
trim_trailing_whitespace_d_string(out);
+
if (strcmp(&(out->str[out->currentStringLength - 11]), "<text:tab/>") == 0) {
d_string_erase(out, out->currentStringLength - 11, 11);
}
// Preserve random label seed
e->random_seed_base_labels = scratch->random_seed_base_labels;
-
+
scratch_pad_free(scratch);
}