diff --git a/lib/galaxy/datatypes/data.py b/lib/galaxy/datatypes/data.py
index db8188a38fa..3858efd7692 100644
--- a/lib/galaxy/datatypes/data.py
+++ b/lib/galaxy/datatypes/data.py
@@ -128,16 +128,22 @@ class Data( object ):
out = "Can't create peek %s" % str( exc )
return out
def display_name(self, dataset):
- """Returns formated html of dataset name"""
+ """Returns formatted html of dataset name"""
try:
return escape(dataset.name)
except:
return "name unavailable"
def display_info(self, dataset):
- """Returns formated html of dataset info"""
+ """Returns formatted html of dataset info"""
try:
# Change new line chars to html
- return escape( dataset.info ).replace( "\r", "\n" ).replace( "\n", "
" )
+ if dataset.info.find( '\r\n' ) >= 0:
+ dataset.info = dataset.info.replace( '\r\n', '
' )
+ if dataset.info.find( '\r' ) >= 0:
+ dataset.info = dataset.info.replace( '\r', '
' )
+ if dataset.info.find( '\n' ) >= 0:
+ dataset.info = dataset.info.replace( '\n', '
' )
+ return escape( dataset.info )
except:
return "info unavailable"
def validate(self, dataset):
@@ -154,7 +160,7 @@ class Data( object ):
Adds a display app to the datatype.
app_id is a unique id
label is the primary display label, ie display at 'UCSC'
- file_function is a string containing the name of the function that returns a properly formated display
+ file_function is a string containing the name of the function that returns a properly formatted display
links_function is a string containing the name of the function that returns a list of (link_name,link)
"""
self.supported_display_apps = self.supported_display_apps.copy()
diff --git a/tools/data_source/biomart.xml b/tools/data_source/biomart.xml
index 68e0e42f8b9..edfa563ebca 100644
--- a/tools/data_source/biomart.xml
+++ b/tools/data_source/biomart.xml
@@ -7,7 +7,7 @@
TODO: Hack to get biomart to work - the 'add_to_URL' param can be eliminated when the Biomart team encodes URL prior to sending, meanwhile
everything including and beyond the first '&' is truncated from URL. They said they'll let us know when this is fixed at their end.
-->
-
+
Central server
data_source.py $output
diff --git a/tools/data_source/biomart_test.xml b/tools/data_source/biomart_test.xml
index cef9de51879..0f4bbdc3517 100644
--- a/tools/data_source/biomart_test.xml
+++ b/tools/data_source/biomart_test.xml
@@ -7,7 +7,7 @@
TODO: Hack to get biomart to work - the 'add_to_URL' param can be eliminated when the Biomart team encodes URL prior to sending, meanwhile
everything including and beyond the first '&' is truncated from URL. They said they'll let us know when this is fixed at their end.
-->
-
+
Test server
data_source.py $output