Skip to content

Commit c922b7e

Browse files
committed
lint
1 parent e34f871 commit c922b7e

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

bibtexparser/splitter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,7 @@ def _is_escaped():
195195
# We only abort if the @ is at the start of a line to allow @ signs
196196
# in field values (e.g., "LeQua @ {CLEF}") while still providing
197197
# error recovery when a new block starts on a new line.
198-
elif next_mark.group(0).startswith("@") and self._is_at_line_start(
199-
next_mark.start()
200-
):
198+
elif next_mark.group(0).startswith("@") and self._is_at_line_start(next_mark.start()):
201199
self._unaccepted_mark = next_mark
202200

203201
if currently_quote_escaped:

tests/splitter_tests/test_splitter_block_start_detection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
from bibtexparser.splitter import Splitter
1414

15-
1615
# =============================================================================
1716
# Test: @ signs in field values (issue #488)
1817
# =============================================================================
@@ -36,7 +35,7 @@
3635
id="at_sign_space_brace_in_title",
3736
),
3837
pytest.param(
39-
'@article{test, email = {john.doe@example.com}}',
38+
"@article{test, email = {john.doe@example.com}}",
4039
"test",
4140
"email",
4241
"john.doe@example.com",

0 commit comments

Comments
 (0)