Permalink
Browse files

Entity: small fix for text and occi rendering

  • Loading branch information...
1 parent 904c0db commit bd5eaf4d39c9cad65a29a2ed9cd8d8ba84aa193b Florian Feldhaus committed Sep 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/occi/core/entity.rb
View
@@ -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"
@@ -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"'

0 comments on commit bd5eaf4

Please sign in to comment.