Skip to content

Commit

Permalink
docs: Fix toml tab bug. Resolve #1024.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryneeverett committed Dec 31, 2023
1 parent c7ba70d commit 53b6274
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bugwarrior/docs/_ext/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ def run(self):
tomllines = tomltext.split('\n')
for i in range(0, len(self.content)): # mutate self.content
# ini2toml removes newlines within sections, so we leave them as is
if self.content[i] == '' and tomllines != '':
if self.content[i] == '' and tomllines[0] != '':
continue
self.content[i] = tomllines.pop(0)
if any(tomllines):
raise ValueError(f'Unconsumed toml: {tomllines}')

toml = self._make_tab('toml')

Expand Down

0 comments on commit 53b6274

Please sign in to comment.