]> source.dussan.org Git - poi.git/commitdiff
fix escher info dump
authorSergey Vladimirov <sergey@apache.org>
Thu, 28 Jul 2011 14:21:40 +0000 (14:21 +0000)
committerSergey Vladimirov <sergey@apache.org>
Thu, 28 Jul 2011 14:21:40 +0000 (14:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1151862 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java

index 5aacf2edff4ba901e68ff737d32c93eab1f5a586..10b8a2467d8f91457051d932430de8cc1f3f9f0f 100644 (file)
@@ -155,7 +155,7 @@ public final class HWPFLister
 
             if ( "--bookmarks".equals( arg ) )
                 outputBookmarks = true;
-            if ( "--eschaer".equals( arg ) )
+            if ( "--escher".equals( arg ) )
                 outputEscher = true;
             if ( "--fields".equals( arg ) )
                 outputFields = true;
@@ -351,8 +351,8 @@ public final class HWPFLister
             System.out.println( "Word 95 not supported so far" );
             return;
         }
-        System.out.println( ( (HWPFDocument) _doc ).getEscherRecordHolder() );
 
+        System.out.println( ( (HWPFDocument) _doc ).getEscherRecordHolder() );
     }
 
     public void dumpFIB()
@@ -392,11 +392,12 @@ public final class HWPFLister
 
         HWPFDocument document = (HWPFDocument) _doc;
 
-            System.out.println( "=== Document part: MAIN ===" );
-            for ( OfficeDrawing officeDrawing : document.getOfficeDrawingsMain().getOfficeDrawings() )
-            {
-                System.out.println( officeDrawing );
-            }
+        System.out.println( "=== Document part: MAIN ===" );
+        for ( OfficeDrawing officeDrawing : document.getOfficeDrawingsMain()
+                .getOfficeDrawings() )
+        {
+            System.out.println( officeDrawing );
+        }
     }
 
     public void dumpPapx( boolean withProperties ) throws Exception