Skip to content

Commit 6c2cd1c

Browse files
authored
Update Tab.php - add TAB_LEADER
1 parent 0ab0b49 commit 6c2cd1c

File tree

1 file changed

+8
-0
lines changed
  • src/PhpWord/Writer/RTF/Style

1 file changed

+8
-0
lines changed

src/PhpWord/Writer/RTF/Style/Tab.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,19 @@ public function write()
3838
\PhpOffice\PhpWord\Style\Tab::TAB_STOP_RIGHT => '\tqr',
3939
\PhpOffice\PhpWord\Style\Tab::TAB_STOP_CENTER => '\tqc',
4040
\PhpOffice\PhpWord\Style\Tab::TAB_STOP_DECIMAL => '\tqdec',
41+
\PhpOffice\PhpWord\Style\Tab::TAB_LEADER_DOT => '\tldot',
42+
\PhpOffice\PhpWord\Style\Tab::TAB_LEADER_HYPHEN => '\tlhyph',
43+
\PhpOffice\PhpWord\Style\Tab::TAB_LEADER_UNDERSCORE => '\tlul',
44+
\PhpOffice\PhpWord\Style\Tab::TAB_LEADER_HEAVY => '\tlth',
45+
\PhpOffice\PhpWord\Style\Tab::TAB_LEADER_MIDDLEDOT => '\tleq',
4146
];
4247
$content = '';
4348
if (isset($tabs[$style->getType()])) {
4449
$content .= $tabs[$style->getType()];
4550
}
51+
if (isset($tabs[$style->getLeader()])) {
52+
$content .= $tabs[$style->getLeader()];
53+
}
4654
$content .= '\tx' . round($style->getPosition());
4755

4856
return $content;

0 commit comments

Comments
 (0)