forked from github/server
indentation fixes (tab->spaces)
This commit is contained in:
parent
9b42824a5e
commit
3ba2b3d4d7
|
@ -978,7 +978,7 @@ void split_paragraph(strlist ** SP, const char *s, unsigned int indent, unsigned
|
||||||
|
|
||||||
assert(width <= REPORTWIDTH);
|
assert(width <= REPORTWIDTH);
|
||||||
width -= indent;
|
width -= indent;
|
||||||
firstline = (mark!=0 && indent>2);
|
firstline = (mark != 0 && indent > 2);
|
||||||
*SP = 0;
|
*SP = 0;
|
||||||
|
|
||||||
while (len > 0) {
|
while (len > 0) {
|
||||||
|
@ -1002,7 +1002,7 @@ void split_paragraph(strlist ** SP, const char *s, unsigned int indent, unsigned
|
||||||
if (!cut) {
|
if (!cut) {
|
||||||
cut = s + _min(len, REPORTWIDTH);
|
cut = s + _min(len, REPORTWIDTH);
|
||||||
}
|
}
|
||||||
strncpy(buf+indent, s, cut - s);
|
strncpy(buf + indent, s, cut - s);
|
||||||
buf[indent + (cut - s)] = 0;
|
buf[indent + (cut - s)] = 0;
|
||||||
addstrlist(SP, buf); // TODO: too much string copying, cut out this function
|
addstrlist(SP, buf); // TODO: too much string copying, cut out this function
|
||||||
while (*cut == ' ') {
|
while (*cut == ' ') {
|
||||||
|
@ -2445,7 +2445,7 @@ static void eval_trail(struct opstack **stack, const void *userdata)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*bufp = 0;
|
*bufp = 0;
|
||||||
var.v = strcpy(balloc((size_t)(bufp - buf +1)), buf);
|
var.v = strcpy(balloc((size_t)(bufp - buf + 1)), buf);
|
||||||
opush(stack, var);
|
opush(stack, var);
|
||||||
#ifdef _SECURECRT_ERRCODE_VALUES_DEFINED
|
#ifdef _SECURECRT_ERRCODE_VALUES_DEFINED
|
||||||
if (errno == ERANGE) {
|
if (errno == ERANGE) {
|
||||||
|
|
Loading…
Reference in New Issue