Skip to content

Commit f6aa0bd

Browse files
ixzhaoalexr00
andauthored
fix quote reply (#6230)
* fix quote reply * Two new lines before reply --------- Co-authored-by: Alex Ross <alros@microsoft.com>
1 parent 2205b45 commit f6aa0bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webviews/components/comment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export function AddComment({
310310
const textareaRef = useRef<HTMLTextAreaElement>();
311311

312312
emitter.addListener('quoteReply', (message: string) => {
313-
const quoted = message.replace(/\n\n/g, '\n\n> ');
313+
const quoted = message.replace(/\n/g, '\n> ');
314314
updatePR({ pendingCommentText: `> ${quoted} \n\n` });
315315
textareaRef.current?.scrollIntoView();
316316
textareaRef.current?.focus();

0 commit comments

Comments
 (0)