# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -19,6 +19,7 @@
 import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
@@ -56,7 +57,10 @@
 
     private static final char UNICODECHAR_NONBREAKING_HYPHEN = '\u2011';
     private static final char UNICODECHAR_ZERO_WIDTH_SPACE = '\u200b';
+    private static final String LIST_DELIMITER = " ";
 
+    HashMap<Integer, Integer[]> listCounts = new HashMap();
+
     public WordExtractor(ParseContext context) {
         super(context);
     }
@@ -209,12 +213,21 @@
        }
 
        TagAndStyle tas;
+        String numbering = null;
 
        if (document.getStyleSheet().numStyles()>p.getStyleIndex()) {
            StyleDescription style =
               document.getStyleSheet().getStyleDescription(p.getStyleIndex());
            if (style != null && style.getName() != null && style.getName().length() > 0) {
-               tas = buildParagraphTagAndStyle(style.getName(), (parentTableLevel>0));
+                if (p.isInList()) {
+                    if (p.type() == Range.TYPE_LISTENTRY) {
+                        String prefix = ListUtils.getFormattedNumber(document.getListTables(), p,
+                                listCounts);
+                        numbering = prefix;
+                    }
+
+                }
+                tas = buildParagraphTagAndStyle(style.getName(), (parentTableLevel > 0));
            } else {
                tas = new TagAndStyle("p", null);
            }
@@ -266,7 +279,8 @@
              Picture picture = pictures.getFor(cr);
              handlePictureCharacterRun(cr, picture, pictures, xhtml);
           } else {
-             handleCharacterRun(cr, tas.isHeading(), xhtml);
+                handleCharacterRun(cr, tas.isHeading(), xhtml, numbering);
+                numbering = null;
           }
        }
        
@@ -291,6 +305,11 @@
     
     private void handleCharacterRun(CharacterRun cr, boolean skipStyling, XHTMLContentHandler xhtml) 
           throws SAXException {
+        handleCharacterRun(cr, skipStyling, xhtml, null);
+    }
+    
+    private void handleCharacterRun(CharacterRun cr, boolean skipStyling, XHTMLContentHandler xhtml, String numbering)
+            throws SAXException {
        // Skip trailing newlines
        if(!isRendered(cr) || cr.text().equals("\r"))
           return;
@@ -357,6 +376,10 @@
        // Non-required hyphens to zero-width space
        text = text.replace((char) 31, UNICODECHAR_ZERO_WIDTH_SPACE);
        
+        //List numbering
+        if ((numbering != null) && (!numbering.equals(""))) {
+            text = numbering + LIST_DELIMITER + text;
+        }
        xhtml.characters(text);
     }
     /**