Skip to content

Commit 26757c2

Browse files
authored
Add softhyphen support to word reader
1 parent 4dc34d4 commit 26757c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/PhpWord/Reader/Word2007/AbstractPart.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ protected function readRunChild(XMLReader $xmlReader, \DOMElement $node, Abstrac
327327
$element->setChangeInfo($type, $author, $date);
328328
}
329329
}
330+
} elseif ($node->nodeName=='w:softHyphen') {
331+
$element=$parent->addText("\u{200c}", $fontStyle, $paragraphStyle);
330332
}
331333
}
332334

0 commit comments

Comments
 (0)