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
Copy file name to clipboardexpand all lines: frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_cubit.dart
+1-1
Original file line number
Diff line number
Diff line change
@@ -318,7 +318,7 @@ class AiWriterCubit extends Cubit<AiWriterState> {
318
318
end: cursorPosition,
319
319
).normalized;
320
320
321
-
String text =await editorState.getMarkdownInSelection(selection);
321
+
String text =(await editorState.getMarkdownInSelection(selection)).trim();
0 commit comments