We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de2828b commit 54906baCopy full SHA for 54906ba
src/PhpWord/Writer/HTML/Element/Text.php
@@ -257,6 +257,11 @@ private function processFontStyle(): void
257
$fontCSS = $styleWriter->write();
258
if ($fontCSS) {
259
$attributeStyle = ' style="' . $fontCSS . '"';
260
+ } else {
261
+ $className = $fontStyle->getStyleName();
262
+ if ($className) {
263
+ $attributeStyle = ' class="' . $className . '"';
264
+ }
265
}
266
// Attribute Lang
267
$lang = $fontStyle->getLang();
0 commit comments