2016-03-02 52 views
2

这是我在使用phpWord时遇到的问题: 我添加了2条水平线,然后在它们之间添加了一些文本。但它总是在文本之前占用一行。可否请您让我知道如何删除空格行: 代码块:删除空格在phpWord中的水平线之后

$aLineSty = array('weight'=> 1, 'width' => 720, 'height'=> 0, 'color'=> '000'); 
$oSection->addLine($aLineSty); 
$_sTextInsideLine = 'bla bladshfsdfh dfhdsf sfhsf sfhs bla bla......'; 
$oSection->addText($_sTextInsideLine, array('size'=> 9.5), $aBodyPara); 
$oSection->addLine($aLineSty); 

它看起来像: enter image description here

我在Github上已经张贴了这个问题,但没有得到任何回应: Remove space After the horizontal line #712

回答