diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2021-11-04 19:46:00 +0200 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2021-11-04 19:46:00 +0200 |
| commit | 3d02a4a917dbdd85c40dbdb0fcac65c82fb7fe5b (patch) | |
| tree | 28f697f0c907f91e6b1649c6e864594494d9745f /internal/clients | |
| parent | 64d54e69d0a3d1604fa910064a275659c8752b31 (diff) | |
Correct mapr stdout newlines
Diffstat (limited to 'internal/clients')
| -rw-r--r-- | internal/clients/maprclient.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/clients/maprclient.go b/internal/clients/maprclient.go index 246946f..6362028 100644 --- a/internal/clients/maprclient.go +++ b/internal/clients/maprclient.go @@ -199,13 +199,13 @@ func (c *MaprClient) printResults() { config.Client.TermColors.MaprTable.RawQueryBg, config.Client.TermColors.MaprTable.RawQueryAttr) } - dlog.Client.Raw(rawQuery) + dlog.Client.Raw(fmt.Sprintf("%s\n", rawQuery)) if rowsLimit > 0 && numRows > rowsLimit { dlog.Client.Warn(fmt.Sprintf("Got %d results but limited terminal output "+ "to %d rows! Use 'limit' clause to override!", numRows, rowsLimit)) } - dlog.Client.Raw(result) + dlog.Client.Raw(fmt.Sprintf("%s\n", result)) } func (c *MaprClient) writeResultsToOutfile() { |
