Skip to content
This repository has been archived by the owner on Aug 25, 2019. It is now read-only.

Commit

Permalink
Merge pull request #199 from freesewing/develop
Browse files Browse the repository at this point in the history
 Fix for #197 and #198
  • Loading branch information
joostdecock authored Dec 14, 2017
2 parents 02f5c5a + ab73ca9 commit 49549cf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@
##Fixed
##Security

## 1.2.8

**Release date**: 2017-12-14

This is a bugfix release with two small fixes

## Fixed

- Fix for [Issue #197: Timezone warning in core](https://github.com/freesewing/core/issues/197)
- Fix for [Issue #198:
Pathstring depends on commands being seperated by spaces,
does not support other whitespace characters
](https://github.com/freesewing/core/issues/198)

## 1.2.7

**Release date**: 2017-12-10
Expand Down
4 changes: 0 additions & 4 deletions patterns/Core/Pattern/Pattern.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ public function __construct($units='metric')
$this->setUnits($units);
$this->loadParts();
$this->replace('__TITLE__', isset($this->config['info']['name']) ? $this->config['info']['name'] : NULL);
$this->replace('__VERSION__', isset($this->config['info']['version']) ? $this->config['info']['version'] : NULL);
$this->replace('__COMPANY__', isset($this->config['info']['company']) ? $this->config['info']['company'] : NULL);
$this->replace('__AUTHOR__', isset($this->config['info']['author']) ? $this->config['info']['author'] : NULL);
}
$this->replace('__DATE__', date('l j F Y') != null ? date('l j F Y') : NULL);

return $this;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Path/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function getRender()
*/
public function setPathstring($path)
{
$this->pathstring = trim(preg_replace('/ {2,}/', ' ', $path));
$this->pathstring = trim(preg_replace('/ {2,}/', ' ', str_replace(["\t","\n"], ' ', $path)));
}

/**
Expand Down

0 comments on commit 49549cf

Please sign in to comment.