Skip to content

Commit a87ba80

Browse files
committed
fix: end positions on formatting
1 parent f41ff1d commit a87ba80

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/language_server/src/robotcode/language_server/robotframework/parts/formatting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async def format_robot_tidy(
157157
start=Position(line=0, character=0),
158158
end=Position(
159159
line=len(document.get_lines()),
160-
character=len((document.get_lines())[-1]),
160+
character=0,
161161
),
162162
),
163163
new_text=new.text,
@@ -201,7 +201,7 @@ async def format_internal(
201201
start=Position(line=0, character=0),
202202
end=Position(
203203
line=len(document.get_lines()),
204-
character=len((document.get_lines())[-1]),
204+
character=0,
205205
),
206206
),
207207
new_text=s.getvalue(),

0 commit comments

Comments
 (0)