Skip to content

Commit

Permalink
Update tooling deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed May 1, 2024
1 parent ec8b0a8 commit 050d07c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
- id: check-useless-excludes
name: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
name: trailing-whitespace
Expand All @@ -40,7 +40,7 @@ repos:
files: \.bat$
name: "*.bat end of lines"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
rev: v0.4.2
hooks:
- id: ruff
args:
Expand All @@ -61,13 +61,13 @@ repos:
name: editorconfig-checker
alias: ec
- repo: https://github.com/tcort/markdown-link-check
rev: v3.11.2
rev: v3.12.1
hooks:
- id: markdown-link-check
name: markdown-link-check
files: ^README\.md$
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.12.1
rev: v0.13.0
hooks:
- id: markdownlint-cli2
name: markdownlint-po2md-tests
Expand Down
11 changes: 7 additions & 4 deletions src/mdpo/md2po/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,10 +870,13 @@ def text(self, block, text):
self.code_start_string,
text,
) - 1
self.current_msgid = '{}{}{}'.format(
self.current_msgid[:self._codespan_start_index],
self._codespan_backticks * self.code_start_string,
self.current_msgid[self._codespan_start_index:],
backticks = (
self._codespan_backticks * self.code_start_string
)
self.current_msgid = (
f'{self.current_msgid[:self._codespan_start_index]}'
f'{backticks}'
f'{self.current_msgid[self._codespan_start_index:]}'
)
if self._inside_aspan:
self._current_aspan_text += text
Expand Down

0 comments on commit 050d07c

Please sign in to comment.