Permalink
Browse files

Nicely apply indentation to scripts.

  • Loading branch information...
1 parent 6bfd659 commit a84c9d54aab5d5778bf3ae0d08e5d800d7b39c54 @mikeabdullah mikeabdullah committed Jun 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 KSHTMLWriter.m
View
@@ -311,7 +311,7 @@ - (void)writeJavascript:(NSString *)script useCDATA:(BOOL)useCDATA;
[self startJavascriptElementWithSrc:nil];
if (useCDATA) [self startJavascriptCDATA];
- [self writeString:script];
+ [self writeHTMLString:script];
if (useCDATA) [self endJavascriptCDATA];
[self endElement];
@@ -338,7 +338,7 @@ - (void)startJavascriptElementWithSrc:(NSString *)src; // src may be nil
if (!src)
{
- [self writeString:@"\n"];
+ [self startNewline];
[self stopWritingInline];
}
}

0 comments on commit a84c9d5

Please sign in to comment.