Skip to content

Commit

Permalink
Entity: small fix for text and occi rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Feldhaus committed Sep 14, 2012
1 parent 904c0db commit bd5eaf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/occi/core/entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def as_json(options={ })
# @return [String] text representation
def to_text
scheme, term = self.kind.split('#')
text = 'Category: ' + term + ';scheme=' + scheme.inspect + ';class="kind"' + "\n"
text = 'Category: ' + term + ';scheme=' + scheme.inspect + '#;class="kind"' + "\n"
@mixins.each do |mixin|
scheme, term = mixin.split('#')
text << 'Category: ' + term + ';scheme=' + scheme.inspect + ';class="mixin"' + "\n"
Expand All @@ -170,7 +170,7 @@ def to_text
def to_header
scheme, term = self.kind.split('#')
header = Hashie::Mash.new
header['Category'] = term + ';scheme=' + scheme.inspect + ';class="kind"'
header['Category'] = term + ';scheme=' + scheme.inspect + '#;class="kind"'
@mixins.each do |mixin|
scheme, term = mixin.split('#')
header['Category'] += ',' + term + ';scheme=' + scheme.inspect + ';class="mixin"'
Expand Down

0 comments on commit bd5eaf4

Please sign in to comment.