Skip to content

Commit 9b61d6e

Browse files
committed
fix: use wrap_mode rather than magic number for initial length
1 parent c4d76dd commit 9b61d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mdformat_mkdocs/_postprocess_inline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def postprocess_list_wrap(
5858
newline_filler = filler + FILLER if indent_count else FILLER[:-1]
5959
if len(text) > wrap_mode:
6060
indent_length = MKDOCS_INDENT_COUNT * indent_count
61-
wrapped_length = -123
61+
wrapped_length = -1 * wrap_mode
6262
words: list[str] = []
6363
for word in text.split(WRAP_POINT):
6464
next_length = wrapped_length + len(word)

0 commit comments

Comments
 (0)