You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this minimal file, with a unexpected indentation on line 3:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
When I run rstfmt on this file, I get this error:
:3: (ERROR/3) Unexpected indentation.
Traceback (most recent call last):
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/docutils/parsers/rst/states.py", line 2798, in text
block = self.state_machine.get_text_block(flush_left=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/docutils/statemachine.py", line 403, in get_text_block
block = self.input_lines.get_text_block(self.line_offset,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/docutils/statemachine.py", line 1352, in get_text_block
raise UnexpectedIndentationError(self[start:end], source,
docutils.statemachine.UnexpectedIndentationError: (StringList(['occaecat cupidatat non proident, sunt in culpa qui officia deserunt'], items=[('', 1)]), '', 3)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/mb/.local/share/nvim/venv/bin/rstfmt", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/rstfmt/__main__.py", line 91, in main
do_file(args, path, misformatted)
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/rstfmt/__main__.py", line 19, in do_file
doc = rstfmt.parse_string(inp)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/rstfmt/rstfmt.py", line 758, in parse_string
parser.parse(s, doc)
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py", line 184, in parse
self.statemachine.run(inputlines, document, inliner=self.inliner)
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/docutils/parsers/rst/states.py", line 169, in run
results = StateMachineWS.run(self, input_lines, input_offset,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/docutils/statemachine.py", line 233, in run
context, next_state, result = self.check_line(
^^^^^^^^^^^^^^^^
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/docutils/statemachine.py", line 445, in check_line
return method(match, context, next_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/docutils/parsers/rst/states.py", line 2801, in text
msg = self.reporter.error('Unexpected indentation.',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/docutils/utils/__init__.py", line 231, in error
return self.system_message(self.ERROR_LEVEL, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/rstfmt/rstfmt.py", line 281, in system_message
msg = super().system_message(level, message, *children, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mb/.local/share/nvim/venv/lib/python3.12/site-packages/docutils/utils/__init__.py", line 197, in system_message
raise SystemMessage(msg, level)
docutils.utils.SystemMessage: :3: (ERROR/3) Unexpected indentation.
The text was updated successfully, but these errors were encountered:
I have this minimal file, with a unexpected indentation on line 3:
When I run
rstfmt
on this file, I get this error:The text was updated successfully, but these errors were encountered: