Fixed help file parsing master
authorChip Black <bytex64@bytex64.net>
Tue, 30 Sep 2008 02:42:34 +0000 (21:42 -0500)
committerChip Black <bytex64@bytex64.net>
Tue, 30 Sep 2008 02:42:34 +0000 (21:42 -0500)
HelpBox.cs
control_help

index 664d5d9..540eb6c 100644 (file)
@@ -43,7 +43,7 @@ public class HelpBox {
                this.pc = pc;
                helpTitle = file.ReadLine();
                while ((line = file.ReadLine()) != null) {
-                       string[] i = line.Split(null);
+                       string[] i = line.Split(null, 2);
                        if (i.Length == 2) {
                                items.Add(new HelpItem(i[0], i[1]));
                        }
index 3999d55..88aa2fa 100644 (file)
@@ -3,5 +3,5 @@ N       New
 O      Open
 S      Save
 Q      Quit
-->     Next Word
-<-     Previous Word
+-&gt;  Next Word
+&lt;-  Previous Word