Bug in $styleFont at addListItem

Aug 11, 2010 at 1:15 AM

I'm using the library and when trying to give the option bold to text doesn't work... Then I searched in the code and found this...

	public function addListItem($text, $depth = 0, $styleFont = null, $styleList = null, $styleParagraph = null) {
		$text = utf8_encode($text);
		$listItem = new PHPWord_Section_ListItem($text, $depth, $styleText, $styleList, $styleParagraph);
		$this->_elementCollection[] = $listItem;
		return $listItem;

In the file PHPWord/Section.php

Then I replaced $styleText for $styleFont, and worked =)



Aug 11, 2010 at 3:58 PM

Thanks for the bug report.

Will be fixed in a few days.