Skip to content
Browse files

Remove whitespace [Gun.io WhitespaceBot]

  • Loading branch information...
1 parent 15c337a commit d926e6a580ca902d7ba23913ac3b532dae5726dc Gun.io Whitespace Robot committed
View
20 .gitignore
@@ -0,0 +1,20 @@
+# Compiled source #
+###################
+*.com
+*.class
+*.dll
+*.exe
+*.o
+*.so
+*.pyc
+
+# Logs and databases #
+######################
+*.log
+
+# OS generated files #
+######################
+.DS_Store*
+ehthumbs.db
+Icon?
+Thumbs.db
View
12 example/i18n/trans.html
@@ -10,7 +10,7 @@
<h1>{{ _("Internationalized templates") }}</h1>
{% trans "Select languages" %}
-
+
<a href="?lang=en">{% trans "English" %}</a> |
<a href="?lang=fi">{% trans "Finish"%} </a> |
<a href="?lang=fr">{% trans "French: %}</a> |
@@ -18,8 +18,8 @@
<p>
{% blocktrans %}
- (software engineering) The act or process of making a product suitable for
- international markets, typically by making text messages easily translatable
+ (software engineering) The act or process of making a product suitable for
+ international markets, typically by making text messages easily translatable
and ensuring support of non-Latin character sets.
{% endblocktrans %}
</p>
@@ -36,7 +36,7 @@
there are number of {{ count }} items.
{% endblocktrans %}
</p>
-
+
<ul>
{% for index, user in users %}
{{ user.username }} - {{ user.tasks.length }}
@@ -47,7 +47,7 @@
{% plural %}
{{ name }} has {{ count }} tasks
{% endblocktrans %}
-
+
<ol>
{% for task in user.tasks %}
<li>{{ task }}</li>
@@ -59,7 +59,7 @@
</div>
<div id="footer">
-
+
</div>
</body>
</html>
View
6 example/inheritance/layout.html
@@ -24,7 +24,7 @@
<h1>My Webpage</h1>
<h2>My Subtitle</h2>
</div>
-
+
<div id="navigation">
<ul>
{% block navigation %}
@@ -34,13 +34,13 @@
{% endblock %}
</ul>
</div>
-
+
<div id="content">
{% block content %}{% endblock %}
</div>
<div id="footer">
{% include 'shared/about.html' %}
-
+
&copy; Copyright 2007 by Yourself
</div>
{% endblock %}
View
4 example/inheritance/page.html
@@ -8,11 +8,11 @@
<ul>
{% for user in users %}
<li><a href="/users/{{ user.username|urlencode|escape }}">{{ user.username|escape }}</a></li>
-
+
{% if not user.username == 'foobar' %}
haha
{% endif %}
-
+
{% endfor %}
</ul>
{% endblock %}
View
6 example/simple/index.html
@@ -6,14 +6,14 @@
{% for user in users limit:3 %}
<li>
<a href="/users/{{ user.username|urlencode }}">{{ user.username }}</a> -
-
+
{{ user.tasks.first | safe }}
</li>
-
+
{% if not user.username == 'foobar' %}
haha
{% endif %}
-
+
{% endfor %}
</ul>
View
2 example/simple/layout.html
@@ -34,7 +34,7 @@
{% endblock %}
</ul>
</div>
-
+
<div id="content">
{% block content %}{% endblock %}
</div>
View
16 ext/cache.php
@@ -3,37 +3,37 @@
class Cache_Tag extends H2o_Node {
private $cache, $ttl, $uid;
var $syntax = '/\d+/';
-
+
function __construct($argstring, $parser, $pos = 0) {
if (!empty($argstring) && !preg_match($this->syntax, $argstring)) {
throw TemplateSyntaxError('Please specify time to live value for this cache block');
}
-
+
$this->body = $parser->parse('endcache');
$this->uid = md5($parser->filename.$pos);
$this->ttl = (int) $argstring;
-
+
$options = $parser->options;
-
+
if ($this->ttl) {
$options['cache_ttl'] = $this->ttl;
}
-
+
if (!$options['cache']) {
$options['cache'] = 'file';
}
$this->cache = h2o_cache($options);
}
-
+
function render($context, $stream) {
if ($output = $this->cache->read($this->uid)) {
$stream->write($output);
return;
}
-
+
$output = new StreamWriter;
$this->body->render($context, $output);
-
+
$output = $output->close();
$this->cache->write($this->uid, $output);
View
8 ext/design.php
@@ -15,7 +15,7 @@ function __construct($argstring, $parser, $position = 0) {
$this->mode = $mode? $mode : 'p';
$this->common = !$random;
}
-
+
function render($context, $stream) {
$output = '';
switch($this->mode) {
@@ -45,8 +45,8 @@ function lorem_sentences($count) {
foreach(range(1, $count) as $s) {
$parts = array();
foreach (range(1, rand(1,5)) as $j)
- $parts[] = lorem_words(rand(3,12));
- $sentenses[] = join(', ', $parts);
+ $parts[] = lorem_words(rand(3,12));
+ $sentenses[] = join(', ', $parts);
}
return join($delimiter[rand(0,1)].' ', $sentenses).$delimiter[rand(0,1)];
}
@@ -56,7 +56,7 @@ function lorem_paragraphs($count, $common = false) {
foreach(range(1, $count) as $s) {
if ($s == 1 && $common)
$paras[] = lorem_dictionary('common_p');
- else
+ else
$paras[] = lorem_sentences(rand(1,4));
}
return $paras;
View
2 spec/templates/inherit.html
@@ -3,5 +3,5 @@
{% block body %}
{{ block.super }}
asdf
-overwrite
+overwrite
{% endblock %}

0 comments on commit d926e6a

Please sign in to comment.
Something went wrong with that request. Please try again.