Skip to content

Commit

Permalink
Release version 0.0.0.dev37
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Sep 25, 2024
1 parent 722dcd1 commit 24c477e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev36"
version = "0.0.0.dev37"
name = "LoggerMan"
dependencies = [
"MDit == 0.0.0.dev12",
Expand Down
4 changes: 3 additions & 1 deletion src/loggerman/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def process_exit_code():
"critical": _LogLevelData(level=LogLevel.CRITICAL, style=level_style_critical),
}
self._target_configs_md = target_configs_md
self._target_configs_rich = target_configs_rich
self._target_configs_rich = target_configs_rich or {"console": _mdit.target.console()}
self._target_default_md = target_default_md
self._target_default_rich = target_default_rich
in_github = github if github is not None else _actionman.in_gha()
Expand Down Expand Up @@ -368,10 +368,12 @@ def section(
):
if not self._initialized:
self.initialize()
heading_configs = self._target_configs_rich[self._target_default_rich].heading
heading = _mdit.element.heading(
title,
level=self._next_section_num,
explicit_number=True,
config_rich=heading_configs[min(len(self._next_section_num), len(heading_configs)) - 1]
)
section_num = ".".join(str(num) for num in self._next_section_num)
self._curr_section_name = f"{section_num}. {title}"
Expand Down

0 comments on commit 24c477e

Please sign in to comment.