Skip to content

Commit 0bcb1f6

Browse files
authored
Merge pull request #55 from mhtamala/patch-2
Fix: issue #54
2 parents 22abbad + 51308d7 commit 0bcb1f6

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

rtf-html-php.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -700,12 +700,14 @@ protected function ExtractFontTable($fontTblGrp)
700700
case 'fprq': // Font pitch
701701
$fonttbl[$fN]->fprq = $child->parameter;
702702
break;
703-
default: continue 2;
703+
default: break;
704704
}
705705
} elseif ($child instanceof RtfText) {
706706
// Save font name
707707
$fname .= $child->text;
708-
} elseif ($child instanceof RtfGroup) {
708+
}
709+
/*
710+
elseif ($child instanceof RtfGroup) {
709711
// possible subgroups:
710712
// '{\*' \falt #PCDATA '}' = alternate font name
711713
// '{\*' \fontemb <fonttype> <fontfname>? <data>? '}'
@@ -716,7 +718,8 @@ protected function ExtractFontTable($fontTblGrp)
716718
// the only authorized symbol here is '*':
717719
// \*\fname = non tagged file name (only WordPad uses it)
718720
continue;
719-
}
721+
}
722+
*/
720723
}
721724
// Remove end ; delimiter from font name
722725
$fonttbl[$fN]->fontname = substr($fname,0,-1);

0 commit comments

Comments
 (0)