Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Entity: small fix for text and occi rendering

  • Loading branch information...
commit bd5eaf4d39c9cad65a29a2ed9cd8d8ba84aa193b 1 parent 904c0db
Florian Feldhaus authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/occi/core/entity.rb
View
4 lib/occi/core/entity.rb
@@ -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"'
Please sign in to comment.
Something went wrong with that request. Please try again.