Permalink
Browse files

semantically significant whitespace changes

  • Loading branch information...
1 parent 769e6fb commit e1f8046cfe18eba09eefb9f8f60346bdcb687bda @WardCunningham committed Feb 1, 2013
Showing with 15 additions and 13 deletions.
  1. +10 −8 client/plugins/pagefold/pagefold.coffee
  2. +5 −5 client/plugins/pagefold/pagefold.js
@@ -1,13 +1,15 @@
# http://stackoverflow.com/questions/5214127/css-technique-for-a-horizontal-line-with-words-in-the-middle
-emit = ($item, item) -> $item.append """
- <div style="height: 10px; border-top: 2px solid lightgray; margin-top: 24px; text-align: center; position: relative; clear: both;">
- <span style="position: relative; top: -.8em; background: white; display: inline-block; color: gray; ">
- &nbsp; #{item.text} &nbsp;
- </span>
- </div>
-"""
+emit = ($item, item) ->
+ $item.append """
+ <div style="height: 10px; border-top: 2px solid lightgray; margin-top: 24px; text-align: center; position: relative; clear: both;">
+ <span style="position: relative; top: -.8em; background: white; display: inline-block; color: gray; ">
+ &nbsp; #{item.text} &nbsp;
+ </span>
+ </div>
+ """
+
bind = ($item, item) ->
-$item.dblclick -> wiki.textEditor $item, item
+ $item.dblclick -> wiki.textEditor $item, item
window.plugins.pagefold = {emit, bind}
@@ -6,11 +6,11 @@
return $item.append("<div style=\"height: 10px; border-top: 2px solid lightgray; margin-top: 24px; text-align: center; position: relative; clear: both;\">\n <span style=\"position: relative; top: -.8em; background: white; display: inline-block; color: gray; \">\n &nbsp; " + item.text + " &nbsp;\n </span>\n</div>");
};
- bind = function($item, item) {};
-
- $item.dblclick(function() {
- return wiki.textEditor($item, item);
- });
+ bind = function($item, item) {
+ return $item.dblclick(function() {
+ return wiki.textEditor($item, item);
+ });
+ };
window.plugins.pagefold = {
emit: emit,

0 comments on commit e1f8046

Please sign in to comment.