Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behavior of Write() with line-feed at its end is different/faulty #17

Closed
JanSlabon opened this issue Feb 5, 2019 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@JanSlabon
Copy link
Member

Following visible test will show the faulty behavior:

$proxy = $this->getProxy('P', 'pt', 'A4');
$proxy->AddPage();
$proxy->SetFont('arial', '', 10);
$proxy->Write(8, "A\n");
$proxy->Write(8, "B");
$this->assertProxySame($proxy, 0.15, 72);
@JanSlabon JanSlabon added the bug Something isn't working label Feb 5, 2019
@JanSlabon
Copy link
Member Author

Also this one:

public function testWriteWithNewLines()
{
    $proxy = $this->getProxy();

    $proxy->SetFont('arial');
    $proxy->AddPage();
    $proxy->Write(2, 'A simple test');
    $proxy->Write(2, ".\n\nBest regards,\n\nTest Team");

    $this->assertProxySame($proxy, 14.64);

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant