Word 2010 line spacing

Oct 29, 2012 at 2:12 PM
Edited Oct 29, 2012 at 2:14 PM

I have had a real problem with line spacing in word 2010. When a document is generated, the paragragh type is normal and all new lines 'br' are doubled spaced.

The only way I was able to resolve this was to edit h2d_htmlconveror.php and change line 647 to the following.

case 'br':
        // Simply create a new text run:
        //$state['textrun'] = $phpword_element->createTextRun();
        $state['textrun'] = $phpword_element->createTextRun($state['current_style']);


I could then add to my style.inc file the following

array (                      
      'br' => array (
          'spaceBefore' => 0,
          'spaceAfter' => 0,
          'spacing' => 1.15,
        ), 


Should this be done a different way? Is this safe?

Coordinator
Nov 5, 2012 at 8:26 PM

Yes, this is a problem, with Word 2007 and 2010. I've added this to the issue tracker to have a look at it.