# HG changeset patch
# User František Kučera <franta-hg@frantovo.cz>
# Date 1387819677 -3600
# Node ID 2813d3409afdd388cf9a2bf8b793bab5ca347d22
# Parent  6fdaa4db39437b41e9e16e0e7fb4f65ac1b27bd0
TabularFormatter: also booleans will be aligned to the right

diff -r 6fdaa4db3943 -r 2813d3409afd java/sql-dk/src/info/globalcode/sql/dk/formatting/TabularFormatter.java
--- a/java/sql-dk/src/info/globalcode/sql/dk/formatting/TabularFormatter.java	Mon Dec 23 16:29:51 2013 +0100
+++ b/java/sql-dk/src/info/globalcode/sql/dk/formatting/TabularFormatter.java	Mon Dec 23 18:27:57 2013 +0100
@@ -134,7 +134,7 @@
 	@Override
 	protected String toString(Object value) {
 		final int width = getColumnWidth(getCurrentColumnsCount());
-		if (value instanceof Number) {
+		if (value instanceof Number || value instanceof Boolean) {
 			return lpad(super.toString(value), width);
 		} else {
 			return rpad(super.toString(value), width);