Skip to content

Commit 562e043

Browse files
committed
Word wrap
1 parent de81e74 commit 562e043

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/configparser.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,8 @@ class RawConfigParser(MutableMapping):
618618
_OPT_TMPL = r"""
619619
(?P<option> # very permissive!
620620
(?:(?!{delim})\S)* # non-delimiter non-whitespace
621-
(?:(?:(?!{delim})\s)+(?:(?!{delim})\S)+)*) # optionally more words
621+
(?:(?:(?!{delim})\s)+ # optionally more
622+
(?:(?!{delim})\S)+)*) # space-separated words
622623
\s*(?P<vi>{delim})\s* # any number of space/tab,
623624
# followed by any of the
624625
# allowed delimiters,
@@ -628,7 +629,8 @@ class RawConfigParser(MutableMapping):
628629
_OPT_NV_TMPL = r"""
629630
(?P<option> # very permissive!
630631
(?:(?!{delim})\S)* # non-delimiter non-whitespace
631-
(?:(?:(?!{delim})\s)+(?:(?!{delim})\S)+)*) # optionally more words
632+
(?:(?:(?!{delim})\s)+ # optionally more
633+
(?:(?!{delim})\S)+)*) # space-separated words
632634
\s*(?: # any number of space/tab,
633635
(?P<vi>{delim})\s* # optionally followed by
634636
# any of the allowed

0 commit comments

Comments
 (0)