summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthdox <thdox@free.fr>2015-02-23 23:31:21 +0100
committerthdox <thdox@free.fr>2015-02-23 23:31:21 +0100
commit73e3ecc6b865ecff63ccda307d4dbf70ec55a9c4 (patch)
treea0955c167059b268e9d74b5ccf4d6c811625b00a
parent0b7996ed7cdb5a5d64a58da3ed7f615ba591416f (diff)
downloadfork-ledger-73e3ecc6b865ecff63ccda307d4dbf70ec55a9c4.tar.gz
fork-ledger-73e3ecc6b865ecff63ccda307d4dbf70ec55a9c4.tar.bz2
fork-ledger-73e3ecc6b865ecff63ccda307d4dbf70ec55a9c4.zip
Fix alignment of cleared-format with 4 spaces as separator.
-rw-r--r--doc/ledger3.texi4
-rw-r--r--src/report.h2
-rw-r--r--test/baseline/cmd-cleared.test2
3 files changed, 4 insertions, 4 deletions
diff --git a/doc/ledger3.texi b/doc/ledger3.texi
index 4a3d51e0..a2083e38 100644
--- a/doc/ledger3.texi
+++ b/doc/ledger3.texi
@@ -651,7 +651,7 @@ $ ledger -f drewr3.dat cleared
$ -20.00 0 MasterCard
$ 200.00 0 Mortgage:Principal
$ -243.60 0 Tithe
----------------- ---------------- ---------
+---------------- ---------------- ---------
$ -243.60 0
@end smallexample
@@ -7172,7 +7172,7 @@ Define the format for the cleared report. The default is:
%-(ansify_if(partial_account(options.flat), blue if color))\n%/
%$1 %$2 %$3\n%/
%(prepend_width ? \" \" * int(prepend_width) : \"\")
- ---------------- ---------------- ---------\n"
+ ---------------- ---------------- ---------\n"
@end smallexample
@item --register-format @var{FORMAT_STRING}
diff --git a/src/report.h b/src/report.h
index 67e95884..c54c8444 100644
--- a/src/report.h
+++ b/src/report.h
@@ -496,7 +496,7 @@ public:
"%-(ansify_if(partial_account(options.flat), blue if color))\n%/"
"%$1 %$2 %$3\n%/"
"%(prepend_width ? \" \" * int(prepend_width) : \"\")"
- "---------------- ---------------- ---------\n");
+ "---------------- ---------------- ---------\n");
});
OPTION(report_t, color);
diff --git a/test/baseline/cmd-cleared.test b/test/baseline/cmd-cleared.test
index 501d207f..91219a40 100644
--- a/test/baseline/cmd-cleared.test
+++ b/test/baseline/cmd-cleared.test
@@ -30,7 +30,7 @@ test cleared
-20 0 F
-30 -30 12-Feb-26 G
-40 0 H
----------------- ---------------- ---------
+---------------- ---------------- ---------
0 0
end test