Skip to content

Commit

Permalink
Simple -writeDeclarationBlock: method.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeabdullah committed Jul 23, 2010
1 parent a19ffb2 commit 6ba8ddb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CSS/KSCSSWriter.h
Expand Up @@ -15,5 +15,6 @@
- (void)writeCSSString:(NSString *)cssString;

- (void)writeIDSelector:(NSString *)ID;
- (void)writeDeclarationBlock:(NSString *)declarations;

@end
9 changes: 9 additions & 0 deletions CSS/KSCSSWriter.m
Expand Up @@ -24,4 +24,13 @@ - (void)writeIDSelector:(NSString *)ID;
[self writeString:ID];
}

- (void)writeDeclarationBlock:(NSString *)declarations;
{
[self writeString:@" {"];
[self writeString:declarations];
[self writeString:@"}"];

// Could be smarter and analyze declarations for newlines
}

@end

0 comments on commit 6ba8ddb

Please sign in to comment.