Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

Commit

Permalink
include quotes in string's styles
Browse files Browse the repository at this point in the history
previously, if string has a style for example, "big", the quotes will still small, but now it's included with the string's style
  • Loading branch information
alshakh committed May 19, 2015
1 parent 98aa66a commit 211b51d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Styler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ module ObjectStyler {
private styleValue(value : string|boolean|number, activatedSyls: string[]) {
var html = "";
if(typeof value === "string") {
html += this.styleSpan("\"", [this.punctuationStyleName] );
var quote = this.styleSpan("\"", [this.punctuationStyleName] );

html += this.styleSpan(parseStringValue(value),activatedSyls);
html += this.styleSpan(quote + parseStringValue(value) + quote,activatedSyls);

html += this.styleSpan("\"", [this.punctuationStyleName]);
} else {
html += this.styleSpan(value.toString(),activatedSyls);
}
Expand Down

0 comments on commit 211b51d

Please sign in to comment.