From debc00d939a8be0bec01d5f2150cf401a3d6dd64 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sun, 16 Nov 2008 08:47:30 +0000
Subject: [PATCH] Do not strip the quote prefix when a hard CR is detected due
 to leading spaces on the next line.

---
 src/sbbs3/js_global.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/js_global.c b/src/sbbs3/js_global.c
index ee7428badc..ea0ad7885f 100644
--- a/src/sbbs3/js_global.c
+++ b/src/sbbs3/js_global.c
@@ -944,8 +944,8 @@ js_word_wrap(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
 					linebuf[l++]='\r';
 					linebuf[l++]='\n';
 					outbuf_append(&outbuf, &outp, linebuf, l, &outbuf_size);
-					l=0;
-					ocol=1;
+					l=prefix_bytes;
+					ocol=prefix_len+1;
 				}
 				else {
 					if(icol < oldlen) {			/* If this line is overly long, It's impossible for the next word to fit */
-- 
GitLab