You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you have multiple Blocks in multiple Rows, some of blocks cannot be replaced
Only the last block was replaced.
This because some word file will drop-line after xml tag, and the regular expression engine in different versions cannot find the matched block.
Steps to Reproduce
See the image below, only blocks #6 has been replaced.
TemplateProcessor
The template has a table with clone rows. Each row has different dynamic data.
The blocks name in each row will be block#1, block#2,...
Describe the Bug
When you have multiple Blocks in multiple Rows, some of blocks cannot be replaced
Only the last block was replaced.
This because some word file will drop-line after
xml
tag, and the regular expression engine in different versions cannot find the matched block.Steps to Reproduce
See the image below, only blocks
#6
has been replaced.block#1
,block#2
,...Expected Behavior
Replaced all Blocks
Current Behavior
Only blocks in the last row was replaced
Context
Please fill in your environment information:
Fix & Pull Request:
File:
TemplateProcessor.php
Line: 740
Change the regexp pattern to:
Describe:
<w:p
tag that closest to the blockname.<w:p
does not contain any other<w:p
inside it.After fix:

Hope this helps.
The text was updated successfully, but these errors were encountered: