Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel authored and github-actions[bot] committed Nov 19, 2023
1 parent e0a7933 commit a500dd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Renderer/Block/ListItemRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ private function addPadding(int $paddingLevel, string $content): string
}
$lines[] = $line;
}

return implode("\n", $lines);
}

Expand All @@ -78,13 +79,16 @@ private function addBulletChar(ListData $listData, string $content): string
switch ($listData->delimiter) {
case ListBlock::DELIM_PAREN:
$delimiter = ')';

break;
case ListBlock::DELIM_PERIOD:
$delimiter = '.';

break;
default:
throw new LogicException('Unexpected list delimiter: ' . $listData->delimiter);
}

return "{$listData->start}{$delimiter} $content";
default:
throw new LogicException('Unexpected list type: ' . $listData->type);
Expand Down

0 comments on commit a500dd4

Please sign in to comment.