Skip to content

Commit edb7752

Browse files
authored
Update Tab.php Add Bar
1 parent e97f35b commit edb7752

File tree

1 file changed

+5
-2
lines changed
  • src/PhpWord/Writer/RTF/Style

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ public function write()
5151
if (isset($tabs[$style->getLeader()])) {
5252
$content .= $tabs[$style->getLeader()];
5353
}
54-
$content .= '\tx' . round($style->getPosition());
55-
54+
if ($style->getType() == \PhpOffice\PhpWord\Style\Tab::TAB_STOP_BAR) {
55+
$content .= '\tb' . round($style->getPosition());
56+
} else {
57+
$content .= '\tx' . round($style->getPosition());
58+
}
5659
return $content;
5760
}
5861
}

0 commit comments

Comments
 (0)