From e1cdd457f9aaaa56af98849a4848b014eef5680c Mon Sep 17 00:00:00 2001 From: Lakshmi Vyasarajan Date: Mon, 5 Mar 2012 16:37:27 +0530 Subject: [PATCH] Issue #161: Fixed stylus indent issues with empty files. --- CHANGELOG.rst | 5 +++++ hyde/ext/plugins/stylus.py | 2 +- hyde/version.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2ba5176..d6cb768 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,11 @@ Version 0.8.5a14 ============================================================ +* Bug Fix: Fixed stylus `indent` issues with empty files. (Issue #161) + +Version 0.8.5a14 +============================================================ + * Bug Fix: Added support for plugin paths relative to site. (Issue #107) Version 0.8.5a13 diff --git a/hyde/ext/plugins/stylus.py b/hyde/ext/plugins/stylus.py index 40807f9..20d7b37 100644 --- a/hyde/ext/plugins/stylus.py +++ b/hyde/ext/plugins/stylus.py @@ -101,7 +101,7 @@ class StylusPlugin(CLTransformer): if not resource.source_file.kind == 'styl': return stylus = self.app - source = File.make_temp(text) + source = File.make_temp(text.strip()) target = source supported = [("compress", "c"), ("include", "I")] diff --git a/hyde/version.py b/hyde/version.py index 6e028af..3c683fa 100644 --- a/hyde/version.py +++ b/hyde/version.py @@ -3,4 +3,4 @@ Handles hyde version TODO: Use fabric like versioning scheme """ -__version__ = '0.8.5a14' +__version__ = '0.8.5a15'