Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New line with templateProcessor #1311

Closed
2 tasks
R-Benjamin opened this issue Mar 14, 2018 · 3 comments
Closed
2 tasks

New line with templateProcessor #1311

R-Benjamin opened this issue Mar 14, 2018 · 3 comments

Comments

@R-Benjamin
Copy link

This is:

Expected Behavior

$myString = "Test-X \n Test-Y"
`Test-X'
'Test-Y'

Current Behavior

$myString = "Test-X \n Test-Y"
`Test-XTest-Y'

Failure Information

When I use the template processor, I can't insert a new line with a string.

How to Reproduce

Please provide a code sample that reproduces the issue.

<?php
$templateProcessor->setValue('txt_agent_detail_evalB#'.$i.'', "test1 \n test2");
?>

Context

  • PHP version: 7
  • PHPWord version: 0.14
@troosan
Copy link
Contributor

troosan commented Mar 17, 2018

please check #838

@troosan troosan closed this as completed Mar 17, 2018
@R-Benjamin
Copy link
Author

< w : b r / >\n and </w:t><w:br/><w:t> don't work. the problem is the same.

@tongjuhua
Copy link

me too,if not use template < w : b r / >\n and </w:t><w:br/><w:t> can work well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants