Skip to content

Commit a623a5d

Browse files
refactor: remove v2 backwards compat from decoder (no indented attachment support)
1 parent aa359ea commit a623a5d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/gcf/decode_generic.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,7 @@ def _parse_tabular_body(
435435
while i < len(lines) and len(attachment_values) < len(all_att_fields):
436436
a_line = lines[i]
437437
a_content: str | None = None
438-
if a_line.startswith(ind + " "):
439-
a_content = a_line[len(ind) + 2:]
440-
elif depth == 0 or a_line.startswith(ind):
438+
if depth == 0 or a_line.startswith(ind):
441439
a_content = a_line[len(ind):] if depth > 0 else a_line
442440
else:
443441
break

0 commit comments

Comments
 (0)