# HG changeset patch
# User Roger Haase <crosseyedpenguin@yahoo.com>
# Date 1284840846 25200
# Node ID 55b7028e9866aea507bf728729b9455a4d4e73b4
# Parent  7a83cc907f6855d1254a94ab731854b4554539a2
IE9B1 uses \r for line end within textarea; revision works with \r\n, \r (or \n\r), and \n

diff -r 7a83cc907f68 -r 55b7028e9866 MoinMoin/web/static/htdocs/common/js/common.js
--- a/MoinMoin/web/static/htdocs/common/js/common.js	Fri Jul 23 09:23:59 2010 -0700
+++ b/MoinMoin/web/static/htdocs/common/js/common.js	Sat Sep 18 13:14:06 2010 -0700
@@ -500,7 +500,7 @@
     if (txtBox) {
         // Calculate the cursor position - IE supports innerText, not textContent
         var textLines = txtBox.textContent || txtBox.innerText;
-        textLines = textLines.match(/(.*\n)/g);
+        textLines = textLines.match(/(.*(\r\n|\r|\n))/g);
         var scrolledText = '';
         for (var i = 0; i < textLines.length && i < jumpLine; ++i) {
             scrolledText += textLines[i];
