Skip to content

Commit

Permalink
Merged pull request #12
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Feb 26, 2019
2 parents d444dd8 + 81fff1c commit 08f10e9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
49 changes: 24 additions & 25 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/document/xml/xhtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ protected function transformToDocbook( DOMElement $xhtml, DOMElement $docbook, $
( !$significantWhitespace ) &&
( $xhtml->getProperty( 'whitespace' ) !== 'significant' ) )
{
continue;
continue 2;
}

if ( ( $xhtml->getProperty( 'whitespace' ) === 'significant' ) ||
Expand Down
2 changes: 1 addition & 1 deletion tests/pcss/parser_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function testParseErroneousPdfCssFile( $file, $message )
{
$this->assertSame(
$message,
preg_replace( '(in file \'[^\']+\')', 'in file \'$file\'', $e->getMessage() ),
preg_replace( '/(in file \'[^\']+\')/', 'in file \'$file\'', $e->getMessage() ),
'Different parse error expected.'
);
}
Expand Down

0 comments on commit 08f10e9

Please sign in to comment.