Closed GoogleCodeExporter closed 8 years ago
Sorry the function name is split_text, not strip_text
Original comment by romuald....@gmail.com
on 29 Jun 2009 at 12:52
Original comment by eclecticgeek
on 4 Jan 2010 at 10:39
Hi, I'm having the same problem, but I have PHP 5.2.9 and also your fix don't
work.
Any thoughts?
Original comment by glp...@gmail.com
on 6 Jan 2010 at 1:31
Issue 146 has been merged into this issue.
Original comment by eclecticgeek
on 24 Apr 2010 at 2:18
Issue 163 has been merged into this issue.
Original comment by fabien.menager
on 20 Jul 2010 at 11:13
This issue was closed by revision r285.
Original comment by fabien.menager
on 20 Jul 2010 at 11:35
Fixed in r285
Original comment by fabien.menager
on 20 Jul 2010 at 11:35
This solution didn't solve my problem (i use PHP 5.3.2 on Ubuntu), after i
replace that function DOMPDF continued breaking words very bad.
I tried with something somebody posted on the following link and it solved it
all:
http://www.dashinteractive.net/dompdf/index.php?v=3153736
What tommylacroix proposes is:
function split_text($offset) {
if ( $offset == 0 )
return;
$text = $this->_frame->get_node()->nodeValue;
$split = $this->_frame->get_node()->splitText($offset);
$this->_frame->get_node()->nodeValue = mb_substr($text,0,$offset);
$split->nodeValue = mb_substr($text,$offset);
$deco = $this->copy($split);
$p = $this->get_parent();
$p->insert_child_after($deco, $this, false);
if ( $p instanceof Inline_Frame_Decorator )
$p->split($deco);
}
Best regards from Colombia
Original comment by latinos...@gmail.com
on 22 Feb 2011 at 4:08
PHP 5.3 doesn't have the bug in the splitText() method, so this patch is
irrelevant.
Original comment by mma...@gmail.com
on 22 Feb 2011 at 4:18
Issue 146 has been merged into this issue.
Original comment by eclecticgeek
on 13 Sep 2012 at 6:13
Original comment by eclecticgeek
on 30 May 2013 at 5:15
Original issue reported on code.google.com by
romuald....@gmail.com
on 29 Jun 2009 at 12:12Attachments: