Skip to content

Commit c4c0c6d

Browse files
committed
Removing new line in response to issue #25.
1 parent a86db36 commit c4c0c6d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/oai/provider/metadata_format/oai_dc.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
module OAI::Provider::Metadata
2-
# = OAI::Metadata::DublinCore
3-
#
2+
43
# Simple implementation of the Dublin Core metadata format.
54
class DublinCore < Format
6-
5+
76
def initialize
87
@prefix = 'oai_dc'
98
@schema = 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd'
@@ -19,9 +18,9 @@ def header_specification
1918
'xmlns:oai_dc' => "http://www.openarchives.org/OAI/2.0/oai_dc/",
2019
'xmlns:dc' => "http://purl.org/dc/elements/1.1/",
2120
'xmlns:xsi' => "http://www.w3.org/2001/XMLSchema-instance",
22-
'xsi:schemaLocation' =>
23-
%{http://www.openarchives.org/OAI/2.0/oai_dc/
24-
http://www.openarchives.org/OAI/2.0/oai_dc.xsd}
21+
'xsi:schemaLocation' =>
22+
%{http://www.openarchives.org/OAI/2.0/oai_dc/
23+
http://www.openarchives.org/OAI/2.0/oai_dc.xsd}.gsub(/\s+/, ' ')
2524
}
2625
end
2726

0 commit comments

Comments
 (0)