Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
48fa53dd
Commit
48fa53dd
authored
Aug 29, 2018
by
juga
Browse files
Stop including \n EOL when parsing V110 header
parent
9ac61cc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/lib/v3bwfile.py
View file @
48fa53dd
...
@@ -146,7 +146,8 @@ class V3BWHeader(object):
...
@@ -146,7 +146,8 @@ class V3BWHeader(object):
for
l
in
lines
[:
index_terminator
]
for
l
in
lines
[:
index_terminator
]
if
l
.
split
(
KEYVALUE_SEP_V110
)[
0
]
in
ALL_KEYVALUES
])
if
l
.
split
(
KEYVALUE_SEP_V110
)[
0
]
in
ALL_KEYVALUES
])
h
=
cls
(
ts
,
**
kwargs
)
h
=
cls
(
ts
,
**
kwargs
)
return
h
,
lines
[
index_terminator
+
1
:]
# last line is new line
return
h
,
lines
[
index_terminator
+
1
:
-
1
]
@
classmethod
@
classmethod
def
from_text_v110
(
self
,
text
):
def
from_text_v110
(
self
,
text
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment