Revision: 14943
http://gate.svn.sourceforge.net/gate/?rev=14943&view=rev
Author: valyt
Date: 2012-01-09 11:37:00 +0000 (Mon, 09 Jan 2012)
Log Message:
-----------
Don't allow new lines in the labels for coref chains.
Fix for bug #3429782.
Modified Paths:
--------------
gate/trunk/src/gate/gui/docview/CorefEditor.java
Modified: gate/trunk/src/gate/gui/docview/CorefEditor.java
===================================================================
--- gate/trunk/src/gate/gui/docview/CorefEditor.java 2012-01-09 11:32:04 UTC
(rev 14942)
+++ gate/trunk/src/gate/gui/docview/CorefEditor.java 2012-01-09 11:37:00 UTC
(rev 14943)
@@ -1116,9 +1116,10 @@
* @return
*/
public String getString(Annotation ann) {
- return document.getContent().toString().substring(ann.
- getStartNode().getOffset().intValue(),
- ann.getEndNode().getOffset().intValue());
+ return document.getContent().toString().substring(ann.
+ getStartNode().getOffset().intValue(),
+ ann.getEndNode().getOffset().intValue()
+ ).replaceAll("\\r\\n|\\r|\\n", " ");
}
/**
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs