Skip to content

Commit

Permalink
lint: Improve c-027
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Nov 7, 2024
1 parent 8acc531 commit f41e3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion se/se_epub_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ def _lint_css_checks(self, local_css_path: Path, abbr_with_whitespace: list) ->
if matches:
messages.append(LintMessage("c-025", "Illegal percent unit used to set [css]height[/] or positioning property. Hint: [css]vh[/] to specify vertical-oriented properties like height or position.", se.MESSAGE_TYPE_ERROR, local_css_path))

matches = regex.search(r"font-size: \.", self.local_css)
matches = regex.search(r"font-size: 0?\.", self.local_css)
if matches:
messages.append(LintMessage("c-027", "Font size below 1.", se.MESSAGE_TYPE_ERROR, local_css_path))

Expand Down

0 comments on commit f41e3f6

Please sign in to comment.