Skip to content

Commit

Permalink
fix issue on svg draw path when Z directive is not separate from the …
Browse files Browse the repository at this point in the history
…next directive - issue #308
  • Loading branch information
spipu committed Jul 31, 2018
1 parent 030fb1d commit 76aa396
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file.
* fix issue on radio/checkbow width - thanks to @Ohda
* fix issue on line number when using style tag - issue #338
* fix issue on svg draw path - relative move was not implemented
* fix issue on svg draw path when Z directive is not separate from the next directive - issue #308
* fix better doc

## [5.1.0](https://github.com/spipu/html2pdf/compare/v5.0.1...v5.1.0) - 2018-01-23
Expand Down
1 change: 1 addition & 0 deletions src/Tag/Svg/Path.php
Expand Up @@ -43,6 +43,7 @@ protected function drawSvg($properties)
$path = preg_replace('/([0-9\.])([a-zA-Z])/', '$1 $2', $path);
$path = preg_replace('/[\s]+/', ' ', trim($path));
$path = preg_replace('/ ([a-z]{2})/', '$1', $path);
$path = preg_replace('/Z([a-zA-Z])/', 'Z $1', $path);

$path = explode(' ', $path);
foreach ($path as $k => $v) {
Expand Down

0 comments on commit 76aa396

Please sign in to comment.