- πΊπΈUnited States duckydan
I am running into this with the latest beta on Drupal 10.1.
Same issue as was reported for 1.x here - https://www.drupal.org/node/2926300 β .
I took a look at the code where it was fixed (in 2.x I believe), in the Docx.php file, and I believe this is the code that parses
and
tags:
else {
// Parsing line breaks and paragraphs
$value = $this->formatValue($value);
$text = $this->getTextBetweenTags($value, 'p'); // P tags are already handled by the PHPWord processor, so we're just focussing on the BR tag here.
$sectionLines = $section->addTextRun();
foreach($text AS $line) {
foreach(explode('<br>', $line) AS $v) {
$sectionLines->addText($v); // Adding the text.
$sectionLines->addTextBreak(); // Because there's a BR here, we want to create a newline
}
}
}
But with the dependency injection in 3.x a lot has changed and I'm not proficient enough in php to know how to adapt and add it back in.
Needs work
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I am running into this with the latest beta on Drupal 10.1.