Skip to content

Commit 4ec29e3

Browse files
committed
Merge branch 'fix/bad-text-align'
2 parents 935b249 + c5b53f5 commit 4ec29e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/example_001.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<h1>Welcome to <a href="http://www.tcpdf.org" style="text-decoration:none;background-color:#CC0000;color:black;">&nbsp;<span style="color:black;">TC</span><span style="color:white;">PDF</span>&nbsp;</a>!</h1>
9393
<i>This is the first example of TCPDF library.</i>
9494
<p>This text is printed using the <i>writeHTMLCell()</i> method but you can also use: <i>Multicell(), writeHTML(), Write(), Cell() and Text()</i>.</p>
95-
<p>Please check the source code documentation and other examples for further information.</p>
95+
<p style="text-align: ;">Please check the source code documentation and other examples for further information.</p>
9696
<p style="color:#CC0000;">TO IMPROVE AND EXPAND TCPDF I NEED YOUR SUPPORT, PLEASE <a href="http://sourceforge.net/donate/index.php?group_id=128076">MAKE A DONATION!</a></p>
9797
EOD;
9898

tcpdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16918,7 +16918,7 @@ protected function getHtmlDomArray($html) {
1691816918
$dom[$key]['height'] = $dom[$key]['style']['height'];
1691916919
}
1692016920
// check for text alignment
16921-
if (isset($dom[$key]['style']['text-align'])) {
16921+
if (isset($dom[$key]['style']['text-align'][0])) {
1692216922
$dom[$key]['align'] = strtoupper($dom[$key]['style']['text-align'][0]);
1692316923
}
1692416924
// check for CSS border properties

0 commit comments

Comments
 (0)