Bug 52311

Summary: Conversion to html : Problem in titles number
Product: POI Reporter: Benoit MAGGI <benoit.maggi>
Component: HWPFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: Eclipse project with an ex of the titles problem with poi WordToHtmlConverter

Description Benoit MAGGI 2011-12-09 13:07:12 UTC
I got a problem with WordToHtmlConverter (poi-3.8-beta4-20110826.jar) : 

The doc input is : 

1 Introduction
1.1 Context
2. Ref
2.1Spec
3. Test
3.1 Code

The html output is :

1 Introduction
2.1 Context   
2 Ref
3.2 Spec
3 Test
4.3 Code 

It may come from an incremental problem with the main title

Find in attachment an eclipse project with an example of the bug.
Comment 1 Benoit MAGGI 2011-12-09 13:12:03 UTC
Created attachment 28058 [details]
Eclipse project with an ex of the titles problem with poi WordToHtmlConverter

You have to add 2 libs to the project (in the lib directory) :
  - poi-3.8-beta4-20110826.jar
  - poi-scratchpad-3.8-beta4-20110826.jar
Comment 2 Sergey Vladimirov 2012-11-05 14:38:28 UTC
Benoit,

Thanks for the report!
Fixed in trunk.

Sergey