Skip to content

Commit

Permalink
start counter of line in one and end in num lines + 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Canga committed Dec 1, 2018
1 parent 1b3d53a commit c27f380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public function getBlobUrl():string
public function getGutter():string
{

$line_number = $this->request_file->getFileLineNumber();
$line_number = $this->request_file->getFileLineNumber() + 1;

$gutter = '';
for ($i = 0; $i < $line_number; $i++) {
for ($i = 1; $i <= $line_number; $i++) {
$gutter .= $i . '<br />';
}

Expand Down

0 comments on commit c27f380

Please sign in to comment.