joe/joe-sigiot.patch
2009-10-26 15:55:32 +00:00

19 lines
650 B
Diff

Index: uformat.c
===================================================================
--- uformat.c.orig 2009-10-22 17:55:13.000000000 +0200
+++ uformat.c 2009-10-22 18:32:40.674592919 +0200
@@ -564,10 +564,12 @@ int uformat(BW *bw)
if (!bw->o.autoindent) {
/* Don't indent second line of single-line paragraphs if autoindent is off */
int x = zlen(indents);
+ int start = x;
while (x && (indents[x - 1] == ' ' || indents[x - 1] == '\t'))
indents[--x] = 0;
if (x) {
- indents[x++] = ' ';
+ if(x < start)
+ indents[x++] = ' ';
indents[x] = 0;
}
indent = txtwidth1(bw->o.charmap, bw->o.tab, indents, x);