This project is read-only.

Bug in $styleFont at addListItem

Aug 11, 2010 at 2:15 AM

Hello:
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 =)

 

Greetings...

Aug 11, 2010 at 4:58 PM

Thanks for the bug report.

Will be fixed in a few days.