PHP Classes

Header formating error

Recommend this page to a friend!

      PHP Word DOCX to HTML with Images  >  All threads  >  Header formating error  >  (Un) Subscribe thread alerts  
Subject:Header formating error
Summary:I have found and fixed small formatting error.
Messages:1
Author:Maksym Chocieszy?ski
Date:2022-09-05 18:44:34
 

  1. Header formating error   Reply   Report abuse  
Picture of Maksym Chocieszy?ski Maksym Chocieszy?ski - 2022-09-05 18:44:34
I think there is an error in readDocument($filename). Header formatting is not cleared in the while loop. After it is set once, i will be set in all next paragraphs too.

I've added $formatting['header'] = 0; on line 452, before preg_match and it fixed it for me.

Also it is language dependent. In polish it is Nagwek1 instead of Heading1 and so on.

 
For more information send a message to info at phpclasses dot org.