failed to be decreased to compensate for the additional indent.
git-svn-id: svn://svn.tartarus.org/sgt/halibut@1834
cda61777-01e9-0310-a592-
d414129be87e
} else if (!ustricmp(source->keyword, L"text-chapter-underline")) {
ret.achapter.underline = *uadv(source->keyword);
} else if (!ustricmp(source->keyword, L"text-chapter-numeric")) {
} else if (!ustricmp(source->keyword, L"text-chapter-underline")) {
ret.achapter.underline = *uadv(source->keyword);
} else if (!ustricmp(source->keyword, L"text-chapter-numeric")) {
- ret.achapter.underline = utob(uadv(source->keyword));
+ ret.achapter.just_numbers = utob(uadv(source->keyword));
} else if (!ustricmp(source->keyword, L"text-section-align")) {
wchar_t *p = uadv(source->keyword);
int n = 0;
} else if (!ustricmp(source->keyword, L"text-section-align")) {
wchar_t *p = uadv(source->keyword);
int n = 0;
body = p->words;
}
text_para(fp, prefix, prefixextra, body,
body = p->words;
}
text_para(fp, prefix, prefixextra, body,
- conf.indent + indentb, indenta, conf.width);
+ conf.indent + indentb, indenta,
+ conf.width - indentb - indenta);
if (wp) {
wp->next = NULL;
free_word_list(body);
if (wp) {
wp->next = NULL;
free_word_list(body);
if (prefixextra)
rdaddsc(&pfx, prefixextra);
fprintf(fp, "%*s%s", indent, "", pfx.text);
if (prefixextra)
rdaddsc(&pfx, prefixextra);
fprintf(fp, "%*s%s", indent, "", pfx.text);
+ /* If the prefix is too long, shorten the first line to fit. */
e = extraindent - strlen(pfx.text);
if (e < 0) {
e = extraindent - strlen(pfx.text);
if (e < 0) {
- e = 0;
- firstlinewidth -= e;
+ firstlinewidth += e; /* this decreases it, since e < 0 */
if (firstlinewidth < 0) {
e = indent + extraindent;
firstlinewidth = width;
fprintf(fp, "\n");
if (firstlinewidth < 0) {
e = indent + extraindent;
firstlinewidth = width;
fprintf(fp, "\n");
}
sfree(pfx.text);
} else
}
sfree(pfx.text);
} else