Skip to content

Commit

Permalink
Merge pull request #56 from Zweihorn/fix-renderer
Browse files Browse the repository at this point in the history
fix renderer.php for "H1 too much" score
  • Loading branch information
splitbrain committed May 6, 2024
2 parents 1d6c461 + 4aed63e commit f449eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function document_end()
}
// 1 point for each H1 too much
if ($this->docArray['header_count'][1] > 1) {
$this->docArray['err']['manyh1'] += $this->docArray['header'][1];
$this->docArray['err']['manyh1'] += $this->docArray['header_count'][1];
}

// 1 point for each incorrectly nested headline
Expand Down

0 comments on commit f449eb8

Please sign in to comment.