Fixed formatting.

This commit is contained in:
Roman Syroeshko 2016-07-08 23:43:12 +04:00
parent e2ea1eec7c
commit 7deb010318
1 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,8 @@ namespace PhpOffice\PhpWord\Escaper;
*/ */
class Rtf extends AbstractEscaper class Rtf extends AbstractEscaper
{ {
protected function escapeAsciiCharacter($code) { protected function escapeAsciiCharacter($code)
{
if (20 > $code || $code >= 80) { if (20 > $code || $code >= 80) {
return '{\u' . $code . '}'; return '{\u' . $code . '}';
} else { } else {
@ -32,7 +33,8 @@ class Rtf extends AbstractEscaper
} }
} }
protected function escapeMultibyteCharacter($code) { protected function escapeMultibyteCharacter($code)
{
return '\uc0{\u' . $code . '}'; return '\uc0{\u' . $code . '}';
} }