cgit

commit b431282c91deea24916578395d88084261410968

Author: Christian Hesse <mail@eworm.de>

remove trailing whitespaces from source files

 README | 2 
 cgitrc.5.txt | 2 
 filter.c | 2 
 filters/html-converters/resources/markdown.pl | 36 ++++++++++----------
 ui-blob.c | 2 
 ui-summary.c | 4 +-


diff --git a/README b/README
index faf18512d2acf98c284d8128798c91187687a132..917d74ada25bba922f392a26a97bbd6aba295674 100644
--- a/README
+++ b/README
@@ -95,5 +95,5 @@
 * The cgit homepage is hosted by cgit at <http://git.zx2c4.com/cgit/about/>
 
 * Patches, bug reports, discussions and support should go to the cgit
-  mailing list: <cgit@lists.zx2c4.com>. To sign up, visit 
+  mailing list: <cgit@lists.zx2c4.com>. To sign up, visit
   <http://lists.zx2c4.com/mailman/listinfo/cgit>




diff --git a/cgitrc.5.txt b/cgitrc.5.txt
index cbaebcab4d22e30e101bdcdeb5c49ae49dad61de..b7570db3ed30f2010a706fecc4e4d9b30dcc3541 100644
--- a/cgitrc.5.txt
+++ b/cgitrc.5.txt
@@ -603,7 +603,7 @@ 	'filter_close()'::
 		This is called when the current filtering operation is
 		completed. It must return an integer value. Usually 0
 		indicates success.
-	
+
 	Additionally, cgit exposes to the Lua the following built-in functions:
 
 	'html(str)'::




diff --git a/filter.c b/filter.c
index 90b9d6805945f5c0dadbd69d1d07d40a2e18ff47..270f0098612862e3980d8c89a2991200b2925329 100644
--- a/filter.c
+++ b/filter.c
@@ -210,7 +210,7 @@
 	str = lua_tostring(lua_state, 1);
 	if (!str)
 		return 0;
-	
+
 	save_filter_write = filter_write;
 	save_filter = current_write_filter;
 	unhook_write();




diff --git a/filters/html-converters/resources/markdown.pl b/filters/html-converters/resources/markdown.pl
index d40b2d066b6d77aafff0b84e3ef3ee0e049b829f..4c39808656a4ae40a3ea102dae505d8cd6828b21 100755
--- a/filters/html-converters/resources/markdown.pl
+++ b/filters/html-converters/resources/markdown.pl
@@ -36,7 +36,7 @@ my $g_nested_brackets;
 $g_nested_brackets = qr{
 	(?> 								# Atomic matching
 	   [^\[\]]+							# Anything other than brackets
-	 | 
+	 |
 	   \[
 		 (??{ $g_nested_brackets })		# Recursive set of nested brackets
 	   \]
@@ -125,7 +125,7 @@ 			my $text = shift;
 			my $ctx  = shift;
 			my $raw  = 0;
 		    if (defined $ctx) {
-		    	my $output = $ctx->stash('markdown_output'); 
+				my $output = $ctx->stash('markdown_output');
 				if (defined $output  &&  $output =~ m/^html/i) {
 					$g_empty_element_suffix = ">";
 					$ctx->stash('markdown_output', '');
@@ -160,7 +160,7 @@ 			on_format => sub {
 				my $text = shift;
 				my $ctx  = shift;
 				if (defined $ctx) {
-					my $output = $ctx->stash('markdown_output'); 
+					my $output = $ctx->stash('markdown_output');
 					if (defined $output  &&  $output eq 'html') {
 						$g_empty_element_suffix = ">";
 					}
@@ -647,7 +647,7 @@ 				$g_html_blocks{$key} = $1;
 				"\n\n" . $key . "\n\n";
 			}egmx;
 	# Special case just for <hr />. It was easier to make a special case than
-	# to make the other regex more complicated.	
+	# to make the other regex more complicated.
 	$text =~ s{
 				(?:
 					(?<=\n\n)		# Starting after a blank line
@@ -658,7 +658,7 @@ 				(						# save in $1
 					[ ]{0,$less_than_tab}
 					<(hr)				# start tag = $2
 					\b					# word break
-					([^<>])*?			# 
+					([^<>])*?			#
 					/?>					# the matching end tag
 					[ \t]*
 					(?=\n{2,}|\Z)		# followed by a blank line or end of document
@@ -998,7 +998,7 @@
 	# Setext-style headers:
 	#	  Header 1
 	#	  ========
-	#  
+	#
 	#	  Header 2
 	#	  --------
 	#
@@ -1193,7 +1193,7 @@
 sub _DoCodeBlocks {
 #
 #	Process Markdown `<pre><code>` blocks.
-#	
+#
 
 	my $text = shift;
 
@@ -1227,26 +1227,26 @@
 sub _DoCodeSpans {
 #
 # 	*	Backtick quotes are used for <code></code> spans.
-# 
+#
 # 	*	You can use multiple backticks as the delimiters if you want to
 # 		include literal backticks in the code span. So, this input:
-#     
+#
 #         Just type ``foo `bar` baz`` at the prompt.
-#     
+#
 #     	Will translate to:
-#     
+#
 #         <p>Just type <code>foo `bar` baz</code> at the prompt.</p>
-#     
+#
 #		There's no arbitrary limit to the number of backticks you
 #		can use as delimters. If you need three consecutive backticks
 #		in your code, use four for delimiters, etc.
 #
 #	*	You can use spaces to get literal backticks at the edges:
-#     
+#
 #         ... type `` `bar` `` ...
-#     
+#
 #     	Turns to:
-#     
+#
 #         ... type <code>`bar`</code> ...
 #
 
@@ -1287,7 +1287,7 @@ 	# (Blosxom interpolates Perl variables in article bodies.)
 	{
 		no warnings 'once';
     	if (defined($blosxom::version)) {
-    		s/\$/&#036;/g;	
+		s/\$/&#036;/g;
     	}
     }
 
@@ -1693,8 +1693,8 @@
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright (c) 2003-2004 John Gruber   
-<http://daringfireball.net/>   
+Copyright (c) 2003-2004 John Gruber
+<http://daringfireball.net/>
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without




diff --git a/ui-blob.c b/ui-blob.c
index 9c99519d997276d9962e346da075a6f8b777ee07..c2de8d6be0eb9d89ef53d8eaebbf060d781153ee 100644
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -54,7 +54,7 @@ 	};
 
 	if (get_sha1(ref, sha1))
 		return 0;
-	if (sha1_object_info(sha1, &size) != OBJ_COMMIT) 
+	if (sha1_object_info(sha1, &size) != OBJ_COMMIT)
 		return 0;
 	read_tree_recursive(lookup_commit_reference(sha1)->tree, "", 0, 0, &paths, walk_tree, &walk_tree_ctx);
 	return walk_tree_ctx.found_path;




diff --git a/ui-summary.c b/ui-summary.c
index ddd8f1b3392a329013cb7ee7d8c652e2847f4d22..df99ce10a9b326797dec19ac91e5b8709807ce5a 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -112,7 +112,7 @@ 		}
 		full_path = xstrdup(path);
 	} else
 		full_path = fmtalloc("%s/%s", base_dir, path);
-	
+
 	if (!ref) {
 		resolved_base = realpath(base_dir, NULL);
 		resolved_full = realpath(full_path, NULL);
@@ -136,7 +136,7 @@ 	int free_filename = 0;
 
 	if (ctx.repo->readme.nr == 0)
 		return;
-	
+
 	filename = ctx.repo->readme.items[0].string;
 	ref = ctx.repo->readme.items[0].util;