Skip to content

Commit c0eb26c

Browse files
committed
Fixing trailing tabs and spaces in multi line cases, Fixes #3
1 parent 0a7db97 commit c0eb26c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jprops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def getJavaProperties(propfile):
2727
ESC_DELIM = r'\\' # '\'
2828
ESCAPED_ESC_DELIM = r'\\\\' # '\\'
2929
COMMENT_LINE = re.compile('\s*[#!].*') # starts with #|! ignore white space
30-
MULTI_LINE = re.compile(r'.*[\\]\s*$') # ending with '\' ignore white space
30+
MULTI_LINE = re.compile(r'.*[\\]\.*$') # ending with '\' ignore white space and tabs
3131
# non escaped =|:|' '|tab|formfeed, include surrounding non escaped white space
3232
SPLIT_DELIM = re.compile(r'(?<!\\)\s*(?<!\\)[=: \t\f]\s*')
3333
# match escape characters '\', except escaped '\\' and unicode escape '\u'

0 commit comments

Comments
 (0)