metashare / META-SHARE

Public repository of the META-SHARE software
http://www.meta-share.eu/
Other
23 stars 31 forks source link

Some values in the single resource view appear with extra spaces #692

Open dmavroeidis opened 11 years ago

dmavroeidis commented 11 years ago

For instance, in a textngram resource "5-gram" appears as "5 - gram".

cspurk commented 11 years ago

The reason for these extra spaces is a generic “prettify” function for pre-defined values.

Other bad examples are these:

The problem is, however, that there are many more cases where it makes sense to add whitespaces around dashes:

In some cases it might make sense to change the pre-defined values in the XML Schema to get rid of the dashes:

dmavroeidis commented 11 years ago

I think I can easily add some restrictions to this method to avoid this behaviour. The following criteria would -at least- catch the problematic values we have spotted so far and leave the rest untouched:

cspurk commented 11 years ago

@dmavroeidis Sounds good to me as a first improvement. Note however, that this will likely also affect our nightly tests.