mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Grammar: whitespace is a word
Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
committed by
Florence Blanc-Renaud
parent
523f70ae46
commit
5c09dcdb98
@@ -138,7 +138,7 @@ def set_directive_lines(quotes, separator, k, v, lines, comment):
|
||||
v_quoted = quote_directive_value(v, '"') if quotes else v
|
||||
new_line = ''.join([k, separator, v_quoted, '\n'])
|
||||
|
||||
# Special case: consider space as "white space" so tabs are allowed
|
||||
# Special case: consider space as "whitespace" so tabs are allowed
|
||||
if separator == ' ':
|
||||
separator = '[ \t]+'
|
||||
|
||||
@@ -178,7 +178,7 @@ def get_directive(filename, directive, separator=' '):
|
||||
|
||||
:returns: The (unquoted) value if the directive was found, None otherwise
|
||||
"""
|
||||
# Special case: consider space as "white space" so tabs are allowed
|
||||
# Special case: consider space as "whitespace" so tabs are allowed
|
||||
if separator == ' ':
|
||||
separator = '[ \t]+'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user