Skip to content

Commit

Permalink
Add proper support for FINDING status.
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed May 20, 2015
1 parent 37ebc07 commit b68e424
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bikeshed/MetadataManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ def fillTextMacros(self, macros, doc=None):
macros["shortname"] = self.shortname
if self.statusText:
macros["statustext"] = self.statusText
else:

macros["vshortname"] = self.vshortname
if self.status in config.shortToLongStatus:
if self.status == "FINDING" and self.group:
macros["longstatus"] = "Finding of the {0}".format(self.group)
elif self.status in config.shortToLongStatus:
macros["longstatus"] = config.shortToLongStatus[self.status]
else:
die("Unknown status '{0}' used.", self.status)
Expand Down Expand Up @@ -292,11 +292,12 @@ def fillTextMacros(self, macros, doc=None):
macros["logo"] = self.logo
# get GH repo from remote
macros["repository"] = getSpecRepository(doc)
# W3C stylesheets are *mostly* of the form W3C-[status], except for *one*. Ugh.
if self.status == "UD":
macros["w3c-stylesheet-url"] = "http://www.w3.org/StyleSheets/TR/w3c-unofficial"
elif self.status == "FPWD":
macros["w3c-stylesheet-url"] = "http://www.w3.org/StyleSheets/TR/W3C-WD"
elif self.status == "FINDING":
macros["w3c-stylesheet-url"] = "http://www.w3.org/StyleSheets/TR/W3C-NOTE"
else:
macros["w3c-stylesheet-url"] = "http://www.w3.org/StyleSheets/TR/W3C-{0}".format(self.status)
# Custom macros
Expand Down

0 comments on commit b68e424

Please sign in to comment.