amol- commented on a change in pull request #11028:
URL: https://github.com/apache/arrow/pull/11028#discussion_r698389718



##########
File path: cpp/src/arrow/pretty_print.cc
##########
@@ -82,7 +82,9 @@ void PrettyPrinter::OpenArray(const Array& array) {
 void PrettyPrinter::CloseArray(const Array& array) {
   if (array.length() > 0) {
     indent_ -= options_.indent_size;
-    Indent();
+    if (!options_.skip_new_lines) {
+      Indent();
+    }

Review comment:
       This is to fix a bug in printing arrays that lead to
   ```
   [10,20,30,40   ]
   ```
   
   instead of 
   
   ```
   [10,20,30,40]
   ```
   
   when `skip_new_lines=True`




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to