PHPWord/src/PhpWord
Nicolas Dermine 4105a9aad1 improve `cloneBlock` regex
it wrongly matched `<w:pPr` when looking for `<w:p`

in that case the cloned block would not be valid XML,
and so the generated docx document could not be opened by Word

adding the `\b` word boundary to the regex fixes this.

the accompanying unit test failed with this message when trying to load
the generated file:

```
ErrorException: DOMDocument::loadXML(): Opening and ending tag mismatch:
p line 2 and body in Entity, line: 2
```

This might solve issues such as #681 and #664.
2018-02-02 17:03:49 +01:00
..
Collection Enable php-cs-fixer in build & fix resulting warnings (#1099) 2017-11-04 22:44:12 +01:00
ComplexType Enable php-cs-fixer in build & fix resulting warnings (#1099) 2017-11-04 22:44:12 +01:00
Element Parse formatting inside HTML lists (#1239) 2018-01-13 10:03:53 +01:00
Escaper Enable php-cs-fixer in build & fix resulting warnings (#1099) 2017-11-04 22:44:12 +01:00
Exception Enable php-cs-fixer in build & fix resulting warnings (#1099) 2017-11-04 22:44:12 +01:00
Metadata fix dependencies to have 7.1 compatible build (#1228) 2017-12-29 02:30:53 +01:00
Reader fix reading of docx default style (#1238) 2018-01-12 23:42:22 +01:00
Shared Add parsing of HTML links 2018-01-25 23:24:21 +01:00
SimpleType move password encoding in separate class 2017-11-23 22:49:21 +01:00
Style fix reading of docx default style (#1238) 2018-01-12 23:42:22 +01:00
Writer fix reading of docx default style (#1238) 2018-01-12 23:42:22 +01:00
resources Refactor: Create writers' `Part` folders and remove all static parts 2014-04-30 13:49:48 +07:00
IOFactory.php Enable php-cs-fixer in build & fix resulting warnings (#1099) 2017-11-04 22:44:12 +01:00
Media.php Enable php-cs-fixer in build & fix resulting warnings (#1099) 2017-11-04 22:44:12 +01:00
PhpWord.php Enable php-cs-fixer in build & fix resulting warnings (#1099) 2017-11-04 22:44:12 +01:00
Settings.php CS fixer warning 2017-11-22 09:02:16 +01:00
Style.php Enable php-cs-fixer in build & fix resulting warnings (#1099) 2017-11-04 22:44:12 +01:00
Template.php Enable php-cs-fixer in build & fix resulting warnings (#1099) 2017-11-04 22:44:12 +01:00
TemplateProcessor.php improve `cloneBlock` regex 2018-02-02 17:03:49 +01:00