new textmate whitespace killa
This commit is contained in:
+6
-6
@@ -66,7 +66,7 @@ module Gollum
|
|||||||
@blob && @blob.name
|
@blob && @blob.name
|
||||||
end
|
end
|
||||||
|
|
||||||
# Public: The canonical page name without extension, and dashes converted
|
# Public: The canonical page name without extension, and dashes converted
|
||||||
# to spaces.
|
# to spaces.
|
||||||
#
|
#
|
||||||
# Returns the String name.
|
# Returns the String name.
|
||||||
@@ -179,7 +179,7 @@ module Gollum
|
|||||||
# options - The options Hash:
|
# options - The options Hash:
|
||||||
# :page - The Integer page number (default: 1).
|
# :page - The Integer page number (default: 1).
|
||||||
# :per_page - The Integer max count of items to return.
|
# :per_page - The Integer max count of items to return.
|
||||||
# :follow - Follow's a file across renames, but falls back
|
# :follow - Follow's a file across renames, but falls back
|
||||||
# to a slower Grit native call. (default: false)
|
# to a slower Grit native call. (default: false)
|
||||||
#
|
#
|
||||||
# Returns an Array of Grit::Commit.
|
# Returns an Array of Grit::Commit.
|
||||||
@@ -209,7 +209,7 @@ module Gollum
|
|||||||
@sidebar ||= find_sub_page(:sidebar)
|
@sidebar ||= find_sub_page(:sidebar)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Gets a Boolean determining whether this page is a historical version.
|
# Gets a Boolean determining whether this page is a historical version.
|
||||||
# Historical pages are pulled using exact SHA hashes and format all links
|
# Historical pages are pulled using exact SHA hashes and format all links
|
||||||
# with rel="nofollow"
|
# with rel="nofollow"
|
||||||
#
|
#
|
||||||
@@ -284,7 +284,7 @@ module Gollum
|
|||||||
def find(name, version)
|
def find(name, version)
|
||||||
map = @wiki.tree_map_for(version.to_s)
|
map = @wiki.tree_map_for(version.to_s)
|
||||||
if page = find_page_in_tree(map, name)
|
if page = find_page_in_tree(map, name)
|
||||||
page.version = version.is_a?(Grit::Commit) ?
|
page.version = version.is_a?(Grit::Commit) ?
|
||||||
version : @wiki.commit_for(version)
|
version : @wiki.commit_for(version)
|
||||||
page.historical = page.version.to_s == version.to_s
|
page.historical = page.version.to_s == version.to_s
|
||||||
page
|
page
|
||||||
@@ -297,7 +297,7 @@ module Gollum
|
|||||||
# map - The Array tree map from Wiki#tree_map.
|
# map - The Array tree map from Wiki#tree_map.
|
||||||
# name - The canonical String page name.
|
# name - The canonical String page name.
|
||||||
# checked_dir - Optional String of the directory a matching page needs
|
# checked_dir - Optional String of the directory a matching page needs
|
||||||
# to be in. The string should
|
# to be in. The string should
|
||||||
#
|
#
|
||||||
# Returns a Gollum::Page or nil if the page could not be found.
|
# Returns a Gollum::Page or nil if the page could not be found.
|
||||||
def find_page_in_tree(map, name, checked_dir = nil)
|
def find_page_in_tree(map, name, checked_dir = nil)
|
||||||
@@ -356,7 +356,7 @@ module Gollum
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Loads a sub page. Sub page nanes (footers) are prefixed with
|
# Loads a sub page. Sub page nanes (footers) are prefixed with
|
||||||
# an underscore to distinguish them from other Pages.
|
# an underscore to distinguish them from other Pages.
|
||||||
#
|
#
|
||||||
# name - String page name.
|
# name - String page name.
|
||||||
|
|||||||
Reference in New Issue
Block a user