Commits

Shlomi Fish  committed 6b3955c

Get rid of trailing space in more file types.

  • Participants
  • Parent commits 7d8cb6e

Comments (0)

Files changed (9)

File Tests/style-trailing-space.t

     my $finder = Test::TrailingSpace->new(
         {
             root => '.',
-            filename_regex => qr/(?:(?:\.(?:t|pm|pl|PL|yml|json|(?:x?html)|wml|xml|js))|README|Changes)\z/,
+            filename_regex => qr/(?:(?:\.(?:bash|atom|c|cfg|cgi|cmake|conf|cook|cpp|css|desktop|dsl|dtd|ent|fo|ggr|h|hs|htm|ini|m|mak|markdown|md|ml|opml|pod|pov|quicktask|rb|rc|rng|Rss|sass|scm|sh|slides|spec|svg|t|tex|tt|ttml|txt|vim|wml|wmlrc|xsl|xslt|yaml|yml|t|pm|pl|PL|yml|json|(?:x?html)|wml|xml|js|mak))|README|Changes|Makefile)\z/,
             abs_path_prune_re => qr#
             \A(?:
             (?:

File lib/presentations/spork/Perl/Graham-Function/Spork.slides

 
 * Keep a base of controlling vectors for each prime number.
 * Keep $n_vec - the vector starting with n[sq] that has to be composed out of the base.
-* As we encounter the next integer $i - 
+* As we encounter the next integer $i -
 00 Get its squaring factors
 00 Check if it's not square or prime (which are useless for us)
 00 Stair-shape it, by multiplying it with the controlling vectors of its factors
 * Once $n_vec becomes 0, we stop and return.
 ----
 == Optimizations
-* Memoizing the get_squaring_factors() function. 
+* Memoizing the get_squaring_factors() function.
 * The Memoize.pm module proved to be too heavy, so I used my own memoization code.
 ----
 == Largest Factor Optimization

File lib/presentations/spork/Perl/Lightning/Opt-Multi-Task-in-PDL/Spork.slides

         $state->register_params();
 
         $state->update_total_iters();
-        
+
         if ($self->total_boards_solved() == $self->num_boards())
         {
             $self->status("solved_all");
         (undef, $num_solved_in_iter, undef, $selected_scan_idx) =
             PDL::minmaximum(
                 PDL::sumover(
-                    ($self->scans_data() <= $iters_quota) & 
+                    ($self->scans_data() <= $iters_quota) &
                     ($self->scans_data() > 0)
                 )
               );
         # $r is the result of this scan.
         my $r = $state->idx_slice();
             # return $self->main()->scans_data()->slice(":,".$self->scan_idx())
-        
+
         # Add the total iterations for all the states that were solved by
         # this scan.
         $state->main()->add('total_iters',
             PDL::sum((($r <= $state->quota()) & ($r > 0)) * $r)
         );
-        
+
         # Find all the states that weren't solved.
         my $indexes = PDL::which(($r > $state->quota()) | ($r < 0));
-        
+
         # Add the iterations for all the states that have not been solved
         # yet.
         $state->main()->add('total_iters', ($indexes->nelem() * $state->quota()));
-        
+
         # Keep only the states that have not been solved yet.
         $state->main()->scans_data(
             $state->main()->scans_data()->dice($indexes, "X")->copy()
 * Back in inspect_quota():
 
     $state->update_total_iters();
-    
+
     if ($self->total_boards_solved() == $self->num_boards())
     {
         $self->status("solved_all");
         my $r = $state->idx_slice()->copy();
         # $r cannot be 0, because the ones that were 0, were already solved
         # in $state->update_total_iters().
-        $state->idx_slice() .= 
-            (($r > 0) * ($r - $state->quota())) + 
+        $state->idx_slice() .=
+            (($r > 0) * ($r - $state->quota())) +
             (($r < 0) * ($r                  ));
     }
 

File lib/presentations/spork/Perl/Lightning/Test-Run/Spork.slides

             $pct = sprintf("%.2f", $tot->{good} / $tot->{tests} * 100);
             my $percent_ok = 100*$tot->{ok}/$tot->{max};
             my $subpct = sprintf " %d/%d subtests failed, %.2f%% okay.",
-                                  $tot->{max} - $tot->{ok}, $tot->{max}, 
+                                  $tot->{max} - $tot->{ok}, $tot->{max},
                                   $percent_ok;
 
             my($fmt_top, $fmt) = _create_fmts($failedtests);
 == Let's start... coding!
 
 * The code of Test-Harness was forked.
-+* It was converted to have an object interface. 
++* It was converted to have an object interface.
 +** All functions were converted to accept the |$self| object reference as a first argument.
 +* Large functions were broken into smaller ones.
 +* Hashes were converted into objects.

File lib/rejects/Howto.cook

     [host]_DEST = [DEST_BASE][[host]_DEST_DIR];
     [host]_WML_FLAGS = [WML_FLAGS] -DSERVER\=[host];
     [host]_DOCS_DEST = [patsubst [host]/%.wml [[host]_DEST]/% [[host]_DOCS]];
-    
+
     [host]_DIRS = [shell find [host] -type d | grep -v \'/\\.svn\' | grep -v \'^\\.svn\' | tail +2];
     [host]_DIRS_DEST = [patsubst [host]/% [[host]_DEST]/% [[host]_DIRS]];
     [host]_IMAGES = [shell find [host] -type f -not -name \'*.wml\' -not -name \'.*\' | grep -v \'/\\.svn\' | grep -v \'~$\'];

File lib/sass/screenplay.sass

         text-decoration: none
     h3
         font-size: 120%
-    h4        
+    h4
         font-size: 110%
     h5
         font-size: 100%

File lib/sgml/shlomif-docbook/dsssl-stylesheets/shlomif-essays.dsl

 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
-<!ENTITY html-ss 
+<!ENTITY html-ss
   PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA dsssl>
 <!ENTITY print-ss
   PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA dsssl>
 ]>
 <style-sheet>
 <style-specification id="print" use="print-stylesheet">
-<style-specification-body> 
+<style-specification-body>
 (define %bop-footnotes%
    ;; Make "bottom-of-page" footnotes?
    #t)
       )
       (sosofo-append
         (make formatting-instruction  data: "\\href{" )
-        (make formatting-instruction 
+        (make formatting-instruction
             data: (attribute-string (normalize "url")) )
         (make formatting-instruction  data: "}{" )
         (process-children) ;; Wrote the text with its format (HTML anchor)
 </style-specification-body>
 </style-specification>
 <style-specification id="html" use="html-stylesheet">
-<style-specification-body> 
+<style-specification-body>
 
 ;; customize the html stylesheet
 (define %html-ext%
     % 1 and 1 become two or so.
     mask = or(mask, current_mask);
     % Upgrade the points in the mask to a greater value in the returned
-    % Mandelbrot-map. 
+    % Mandelbrot-map.
     ret = ret + mask;
     % Zero the points that have overflowed, so they will not propagate
     % to infinity.

File t2/open-source/projects/conf/vim/current/conf/Vim/tt2.vim

 " Vim syntax file
 " Language: TT2 ( Perl Module Template-Toolkit 2.x )
-" References:   Template-Toolkit 2 
+" References:   Template-Toolkit 2
 "                   http://search.cpan.org/~abw/Template-Toolkit/
 "                   http://template-toolkit.org/
 "                   C:\> perldoc Template
             \ LAST NEXT BREAK STOP BLOCK
             \ IF IN UNLESS ELSIF FOR FOREACH WHILE SWITCH CASE
             \ USE PLUGIN MACRO META
-            \ TRY FINAL RETURN LAST 
+            \ TRY FINAL RETURN LAST
             \ CLEAR TO STEP AND OR NOT MOD DIV
             \ ELSE PERL RAWPERL END
 syn match   tt2_directive +|+ contained