-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
<em> <strong> generates a line break on ::addHtml() #1410
Comments
i try to put it between a |
only way I managed to have it working is <p>Dies ist ein Test<br/>DIES <strong>IST</strong> <em>EIN</em> TEST</p>
<ul>
<li>wrewrewr</li>
<li>cxvycxvy</li>
</ul> |
is there an other solution or an Bugfix for this ? . |
I was having this issue as well, and I have found this solution to work currently.
This works well enough for my use, so hope it helps here :) |
that removed the tags that cause the line breaks. so as of April 2021 - is there a solution for this? by the way, the unwanted line breaks happens on every HTML tag (using the addHtml() method). |
@dorigoor the solution I use only targets double I guess you could add to the checks and look for patterns that emerge. Also noticed that the code block wasn't displaying properly, so fixed that here |
I'm facing a similar problem here, I have a string that contains the |
@vikashrajgupta Its been so long since I solved this, but I run my text through this function, and its seems to do the trick. The HTML that gets input is horrific, so I have to do a lot of steps to clean it. `function clean_comment_export($subject, $front_addition_text = '') {
}` |
@schreyers your fix just saved me after 3 hours of figuring out what exactly is wrong. i replaced Thank you |
Had the same problem, @schreyers 's function indeed does the trick. |
This is:
Expected Behavior
Dies ist ein Test
DIES IST EIN TEST
• wrewrewr
• cxvycxvy
ertfetertert
The HTML-Table is read from a MySQL-Field and stored from a ckeditor
Current Behavior
Dies ist ein Test
DIES
IST
EIN
TEST
• wrewrewr
• cxvycxvy
ertfetertert
What is the current behavior?
After the Bold and Italic it puts a line-break into
Failure Information
Please help provide information about the failure.
The resulting XML from the docx:
How to Reproduce
The source of the Table:
Context
I use phpword installed over composer into a codeigniter-project. I try 0.14 / 0.15.x-dev / dev-master / dev-develop. I double checked with the pulled changes from ticket #846 and they are all in place. I try to put it between a
<p>
and<div>
. The only solution for now is to remove the tags after reading from the database.The text was updated successfully, but these errors were encountered: