You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p style="line-height: 4;">this is my first line</p><p style="line-height: 4;">here is the second line</p><p style="line-height: 4;">here is the third line</p><ul><li style="line-height: 4;">first list</li><li style="line-height: 4;">second list </li><li style="line-height: 4;">third list</li></ul>
The line height working on p tag but not working on lists(ul, ol) it works only when i set as default using package classes
$phpWord->setDefaultParagraphStyle(
array(
//'alignment' => \PhpOffice\PhpWord\SimpleType\Jc::LEFT,
'spaceAfter' => \PhpOffice\PhpWord\Shared\Converter::pointToTwip(0),
'lineHeight' => 1.30,
)
);
but it effect on the complete page, I want to implement that written in style for each element. in some elements may be 3, 4 or different.
Expected behavior
i want to implement line hight using inline style on lists in html like it is working fine for other tags but not on lists. <ul><li style="line-height: 4;">first list</li><li style="line-height: 4;">second list </li><li style="line-height: 4;">third list</li></ul>
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug and add attachments
<p style="line-height: 4;">this is my first line</p><p style="line-height: 4;">here is the second line</p><p style="line-height: 4;">here is the third line</p><ul><li style="line-height: 4;">first list</li><li style="line-height: 4;">second list </li><li style="line-height: 4;">third list</li></ul>
The line height working on p tag but not working on lists(ul, ol) it works only when i set as default using package classes
$phpWord->setDefaultParagraphStyle(
array(
//'alignment' => \PhpOffice\PhpWord\SimpleType\Jc::LEFT,
'spaceAfter' => \PhpOffice\PhpWord\Shared\Converter::pointToTwip(0),
'lineHeight' => 1.30,
)
);
but it effect on the complete page, I want to implement that written in style for each element. in some elements may be 3, 4 or different.
Expected behavior
i want to implement line hight using inline style on lists in html like it is working fine for other tags but not on lists.
<ul><li style="line-height: 4;">first list</li><li style="line-height: 4;">second list </li><li style="line-height: 4;">third list</li></ul>
Steps to reproduce
private function data_for_word($request, $jobs, $relation, $type, $version = null)
{
//create folder
$foldername = 'user_export_' . Auth::guard('users')->user()->id;
$path = storage_path($foldername);
if (!file_exists($path)) {
mkdir($path, 0777, true);
}
if (isset($request->file_type) && !empty($request->file_type)) {
$type = $request->file_type;
}
$jobTitleStyle = new \PhpOffice\PhpWord\Style\Font();
$jobTitleStyle->setBold(true);
$jobTitleStyle->setSize(24);
PHPWord version(s) where the bug happened
0.18.3 and 1.3
PHP version(s) where the bug happened
7.4
Priority
The text was updated successfully, but these errors were encountered: