diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-02-28 13:42:35 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-03-02 21:12:36 +0200 |
commit | e7e4ecf4f69967351b6b6fd5e29749fd141c95b0 (patch) | |
tree | 62b2c3cb32001c1397d4d14692746e8264860618 /oox | |
parent | f4884d051f1eea07a0fe371834cb7c1da1cbee07 (diff) |
Align columns in output harder
If we are going to use printf anyway, why not use its field width and
left-adjustment features and actually achieve the columnar output we
presumably wanted?
Change-Id: I95dbd2aaa01d06c69d23d74fa249fd3419afa8d6
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/helper/propertymap.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx index b6cde43ad93c..20e1fb761d29 100644 --- a/oox/source/helper/propertymap.cxx +++ b/oox/source/helper/propertymap.cxx @@ -369,17 +369,17 @@ static void lclDumpAnyValue( const Any& value) } else if( value >>= aMatrix ) { fprintf (stderr,"Matrix\n%f %f %f\n%f %f %f\n%f %f %f\n", aMatrix.Line1.Column1, aMatrix.Line1.Column2, aMatrix.Line1.Column3, aMatrix.Line2.Column1, aMatrix.Line2.Column2, aMatrix.Line2.Column3, aMatrix.Line3.Column1, aMatrix.Line3.Column2, aMatrix.Line3.Column3); } else if( value >>= intValue ) - fprintf (stderr,"%" SAL_PRIdINT32 " (hex: %" SAL_PRIxUINT32 ")\n", intValue, intValue); + fprintf (stderr,"%-10" SAL_PRIdINT32 " (hex: %" SAL_PRIxUINT32 ")\n", intValue, intValue); else if( value >>= uintValue ) - fprintf (stderr,"%" SAL_PRIuUINT32 " (hex: %" SAL_PRIxUINT32 ")\n", uintValue, uintValue); + fprintf (stderr,"%-10" SAL_PRIuUINT32 " (hex: %" SAL_PRIxUINT32 ")\n", uintValue, uintValue); else if( value >>= int16Value ) - fprintf (stderr,"%d (hex: %x)\n", int16Value, int16Value); + fprintf (stderr,"%-10d (hex: %x)\n", int16Value, int16Value); else if( value >>= uint16Value ) - fprintf (stderr,"%d (hex: %x)\n", uint16Value, uint16Value); + fprintf (stderr,"%-10d (hex: %x)\n", uint16Value, uint16Value); else if( value >>= floatValue ) fprintf (stderr,"%f\n", floatValue); else if( value >>= boolValue ) - fprintf (stderr,"%d (bool)\n", boolValue); + fprintf (stderr,"%-10d (bool)\n", boolValue); else if( value >>= xNumRule ) { fprintf (stderr, "XIndexReplace\n"); if (xNumRule.is()) { |