Commits

Geoffrey Sneddon committed e7b5f78

Remove leading zeros from [DATE] (e.g., from the day).

  • Participants
  • Parent commits bda59ae

Comments (0)

Files changed (2)

 
 </head><body><header>
 	<h1>spec-gen 1.0b1.1-dev</h1>
-	<h2 class="no-num no-toc">Documentation — 01 August 2008</h2>
+	<h2 class="no-num no-toc">Documentation — 1 August 2008</h2>
 </header>
 
 <h2 class="no-num no-toc" id=contents>Contents</h2>

File specGen/processes/sub.py

 year_identifier = u"[YEAR"
 
 date = re.compile(r"\[DATE[^\]]*\]")
-date_sub = time.strftime("%d %B %Y", time.gmtime())
+date_sub = time.strftime("%d %B %Y", time.gmtime()).lstrip("0")
 date_identifier = u"[DATE"
 
 cdate = re.compile(r"\[CDATE[^\]]*\]")