diff options
Diffstat (limited to 'src/net/cbaines')
-rw-r--r-- | src/net/cbaines/suca/CalendarApplet.java | 5 | ||||
-rw-r--r-- | src/net/cbaines/suca/SotonCalendarParser.java | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/net/cbaines/suca/CalendarApplet.java b/src/net/cbaines/suca/CalendarApplet.java index c94c6f4..a4c4d00 100644 --- a/src/net/cbaines/suca/CalendarApplet.java +++ b/src/net/cbaines/suca/CalendarApplet.java @@ -8,7 +8,6 @@ import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; -import java.io.Reader; import java.io.StringReader; import java.lang.reflect.InvocationTargetException; @@ -28,12 +27,12 @@ import javax.swing.JTabbedPane; import javax.swing.JTextField; import javax.swing.SwingUtilities; -import org.apache.commons.io.IOUtils; - import net.fortuna.ical4j.data.CalendarBuilder; import net.fortuna.ical4j.data.ParserException; import net.fortuna.ical4j.model.Calendar; +import org.apache.commons.io.IOUtils; + @SuppressWarnings("serial") public class CalendarApplet extends JApplet { diff --git a/src/net/cbaines/suca/SotonCalendarParser.java b/src/net/cbaines/suca/SotonCalendarParser.java index 7734dc5..a867063 100644 --- a/src/net/cbaines/suca/SotonCalendarParser.java +++ b/src/net/cbaines/suca/SotonCalendarParser.java @@ -659,7 +659,7 @@ public class SotonCalendarParser implements CalendarParser { dayOfWeek = info[0]; startTime = info[1]; endTime = info[2]; - name = info[3]; + name = info[3].split(" ")[0]; lecturer = info[4]; location = info[5]; weeks = info[6]; |