Browse Source

Remove trailing whitespaces in every non-XEP file.

Emmanuel Gil Peyrot 2 years ago
parent
commit
fe9d3969fd
11 changed files with 120 additions and 121 deletions
  1. 2
    2
      announce.py
  2. 1
    1
      archive.sh
  3. 3
    3
      dbupdate.py
  4. 1
    1
      deferred.py
  5. 58
    58
      gen.py
  6. 3
    3
      lastcall.py
  7. 1
    1
      protopage.xsl
  8. 15
    15
      xep.xsd
  9. 13
    14
      xepinfo.py
  10. 3
    3
      xeputil.py
  11. 20
    20
      xmpp.css

+ 2
- 2
announce.py View File

@@ -54,7 +54,7 @@ def getText(nodelist):
54 54
 # get the seconds in the Unix era
55 55
 now = int(time.time())
56 56
 
57
-# READ IN ARGS: 
57
+# READ IN ARGS:
58 58
 #
59 59
 # 1. XEP number
60 60
 
@@ -167,7 +167,7 @@ else:
167 167
     thesubject = 'UPDATED: XEP-'
168 168
 thesubject = thesubject + xepnum + ' (' + title + ')'
169 169
 
170
-versionline = 'Version ' + version + ' of XEP-' + xepnum + ' (' + title + ') has been released.' 
170
+versionline = 'Version ' + version + ' of XEP-' + xepnum + ' (' + title + ') has been released.'
171 171
 abstractline = 'Abstract: ' + abstract
172 172
 changelogline = 'Changelog: ' + remark + ' (' + initials + ')'
173 173
 diffsline = 'Diff: ' + diffs

+ 1
- 1
archive.sh View File

@@ -1,6 +1,6 @@
1 1
 #!/bin/sh
2 2
 # archive an old version of a XEP (before publishing new version)
3
-# usage: ./archive.sh xepnum version 
3
+# usage: ./archive.sh xepnum version
4 4
 
5 5
 ## LICENSE ##
6 6
 #

+ 3
- 3
dbupdate.py View File

@@ -6,7 +6,7 @@
6 6
 # Last Modified: 2006-12-07
7 7
 # Author: Peter Saint-Andre (stpeter@jabber.org)
8 8
 # License: public domain
9
-# HowTo: ./dbupdate.py dbuser dbpw xepnum 
9
+# HowTo: ./dbupdate.py dbuser dbpw xepnum
10 10
 
11 11
 ## LICENSE ##
12 12
 #
@@ -54,7 +54,7 @@ def getText(nodelist):
54 54
 # get the seconds in the Unix era
55 55
 now = int(time.time())
56 56
 
57
-# READ IN ARGS: 
57
+# READ IN ARGS:
58 58
 #
59 59
 # 1. XEP number
60 60
 # 2. database user
@@ -139,7 +139,7 @@ if xepflag == "new":
139 139
     cursor.execute(theStatement)
140 140
 else:
141 141
     theStatement = "UPDATE jeps SET name='" + title + "', type='" + xeptype + "', status='" + xepstatus + "', notes='" + theNotes + "', version='" + str(version) + "', last_modified='" + str(now) + "', abstract='" + abstract + "', changelog='" + theLog + "' WHERE number='" + str(xepnum) + "';"
142
-    cursor.execute(theStatement) 
142
+    cursor.execute(theStatement)
143 143
 result = cursor.fetchall()
144 144
 
145 145
 # END

+ 1
- 1
deferred.py View File

@@ -54,7 +54,7 @@ def getText(nodelist):
54 54
 # get the seconds in the Unix era
55 55
 now = int(time.time())
56 56
 
57
-# READ IN ARGS: 
57
+# READ IN ARGS:
58 58
 #
59 59
 # 1. XEP number
60 60
 

+ 58
- 58
gen.py View File

@@ -71,10 +71,10 @@ def serializeInlineImage(output_dir, xep_nr, no, attrValue):
71 71
 				charset = bit[8:]
72 72
 			elif bit == 'base64':
73 73
 				b64 = True
74
-	
74
+
75 75
 		# Do something smart with charset and b64 instead of assuming
76 76
 		plaindata = base64.b64decode(data)
77
-	
77
+
78 78
 		# Do something smart with mime_type
79 79
 		if mime_type in ('image/png', 'image/jpeg'):
80 80
 			file_ext = mime_type.split('/')[1]
@@ -100,13 +100,13 @@ def getText(nodelist):
100 100
 def executeCommand( cmd ):
101 101
 	error, desc = commands.getstatusoutput( cmd )
102 102
 	return error, desc + "\n" + "executed cmd: " + cmd
103
- 
103
+
104 104
 ## creates a HTML table (for the human reader) and XML table (for bots)
105 105
 class XEPTable:
106 106
 	def __init__(self, filename, shortXMLfilename):
107 107
 		self.filename = filename
108 108
 		self.shortXMLfilename = shortXMLfilename
109
-		
109
+
110 110
 		try:
111 111
 			self.tableFile = parse(filename)
112 112
 		except:
@@ -117,7 +117,7 @@ class XEPTable:
117 117
 			self.tableFile.getElementsByTagName("table")[0].setAttribute("cellspacing", "0")
118 118
 			self.tableFile.getElementsByTagName("table")[0].setAttribute("cellpadding", "3")
119 119
 			self.tableFile.getElementsByTagName("table")[0].setAttribute("border", "1")
120
-			
120
+
121 121
 			header = parseString(
122 122
 '''<tr class='xepheader'>
123 123
 	<th align='left'>Number</th>
@@ -127,7 +127,7 @@ class XEPTable:
127 127
 	<th align='left'>Date</th>
128 128
 </tr>''')
129 129
 			self.tableFile.getElementsByTagName("table")[0].appendChild(header.getElementsByTagName("tr")[0])
130
-		
130
+
131 131
 		try:
132 132
 			self.botsFile = parse(shortXMLfilename)
133 133
 		except:
@@ -139,7 +139,7 @@ class XEPTable:
139 139
 		self.tableFile.getElementsByTagName("table")[0].normalize()
140 140
 		f.write(self.tableFile.toxml())
141 141
 		f.close()
142
-		
142
+
143 143
 		f = open(self.shortXMLfilename, "wb")
144 144
 		self.botsFile.getElementsByTagName("xeps")[0].normalize()
145 145
 		f.write(self.botsFile.toxml())
@@ -153,7 +153,7 @@ class XEPTable:
153 153
 			if row.getAttribute("id") == "xep" + info.getNr():
154 154
 				xeprow = row
155 155
 				break
156
-		
156
+
157 157
 		if xeprow == 0:
158 158
 			xeprow = self.tableFile.createElement("tr")
159 159
 			self.tableFile.getElementsByTagName("table")[0].appendChild(xeprow)
@@ -165,22 +165,22 @@ class XEPTable:
165 165
 			xeprow.setAttribute("class", "tablebody XEP-" + info.getStatus())
166 166
 			while(xeprow.hasChildNodes()):
167 167
 				xeprow.removeChild(xeprow.firstChild)
168
-		
168
+
169 169
 		col = parseString('''<td valign='top'><a href='/extensions/xep-''' + info.getNr() + ".html'>XEP-" + info.getNr() + '''</a> <a href='/extensions/xep-''' + info.getNr() + '''.pdf'>(PDF)</a></td>''')
170 170
 		xeprow.appendChild(col.getElementsByTagName("td")[0])
171
-		
171
+
172 172
 		col = parseString("<td valign='top'>" + info.getTitle() + "</td>")
173 173
 		xeprow.appendChild(col.getElementsByTagName("td")[0])
174
-		
174
+
175 175
 		col = parseString("<td valign='top'>" + info.getType() + "</td>")
176 176
 		xeprow.appendChild(col.getElementsByTagName("td")[0])
177
-		
177
+
178 178
 		col = parseString("<td valign='top'>" + info.getStatus() + "</td>")
179 179
 		xeprow.appendChild(col.getElementsByTagName("td")[0])
180
-		
180
+
181 181
 		col = parseString("<td valign='top'>" + info.getDate() + "</td>")
182 182
 		xeprow.appendChild(col.getElementsByTagName("td")[0])
183
-		
183
+
184 184
 		## set for bots file
185 185
 		xeps = self.botsFile.getElementsByTagName("xep")
186 186
 		xep = 0
@@ -188,7 +188,7 @@ class XEPTable:
188 188
 			if xeps_xep.getElementsByTagName("number")[0].firstChild.data == info.getNr():
189 189
 				xep = xeps_xep
190 190
 				break
191
-		
191
+
192 192
 		if xep == 0:
193 193
 			xep = self.botsFile.createElement("xep")
194 194
 			self.botsFile.getElementsByTagName("xeps")[0].appendChild(xep)
@@ -197,25 +197,25 @@ class XEPTable:
197 197
 		else:
198 198
 			while(xep.hasChildNodes()):
199 199
 				xep.removeChild(xep.firstChild)
200
-		
200
+
201 201
 		child = parseString("<number>" + info.getNr() + "</number>")
202 202
 		xep.appendChild(child.getElementsByTagName("number")[0])
203
-		
203
+
204 204
 		child = parseString("<name>" + info.getTitle() + "</name>")
205 205
 		xep.appendChild(child.getElementsByTagName("name")[0])
206
-		
206
+
207 207
 		child = parseString("<type>" + info.getType() + "</type>")
208 208
 		xep.appendChild(child.getElementsByTagName("type")[0])
209
-		
209
+
210 210
 		child = parseString("<status>" + info.getStatus() + "</status>")
211 211
 		xep.appendChild(child.getElementsByTagName("status")[0])
212
-		
212
+
213 213
 		child = parseString("<updated>" + info.getDate() + "</updated>")
214 214
 		xep.appendChild(child.getElementsByTagName("updated")[0])
215
-		
215
+
216 216
 		child = parseString("<shortname>" + info.getShortname() + "</shortname>")
217 217
 		xep.appendChild(child.getElementsByTagName("shortname")[0])
218
-		
218
+
219 219
 		child = parseString("<abstract>" + info.getAbstract() + "</abstract>")
220 220
 		xep.appendChild(child.getElementsByTagName("abstract")[0])
221 221
 
@@ -225,7 +225,7 @@ def filebase( filename ):
225 225
 
226 226
 def checkError( error, desc):
227 227
 	global verbose
228
-	
228
+
229 229
 	if error != 0:
230 230
 		if verbose:
231 231
 			print "Error: ", desc
@@ -233,11 +233,11 @@ def checkError( error, desc):
233 233
 	return True
234 234
 
235 235
 def fileHash( filename ):
236
-	f = open(filename, "rb") 
237
-	import hashlib 
238
-	h = hashlib.sha1() 
239
-	h.update(f.read()) 
240
-	hash = h.hexdigest() 
236
+	f = open(filename, "rb")
237
+	import hashlib
238
+	h = hashlib.sha1()
239
+	h.update(f.read())
240
+	hash = h.hexdigest()
241 241
 	f.close()
242 242
 	return hash
243 243
 
@@ -250,7 +250,7 @@ def loadDict( filename ):
250 250
 	except:
251 251
 		print "failed loading dict."
252 252
 		return {}
253
-	
253
+
254 254
 def saveDict( filename, di ):
255 255
 	f = open(filename, "w")
256 256
 	pickle.dump(di, f)
@@ -260,15 +260,15 @@ def buildXHTML( file, nr ):
260 260
 	error, desc = executeCommand("xsltproc xep.xsl " + file + " > " + XEPPATH + "/xep-" + nr + ".html")
261 261
 	if not checkError(error, desc):
262 262
 		return False
263
-		
263
+
264 264
 	error, desc = executeCommand("xsltproc ref.xsl xep-" + nr + ".xml > " + XEPPATH + "/refs/reference.XSF.XEP-" + nr + ".xml")
265 265
 	if not checkError(error, desc):
266 266
 		return False
267
-	
267
+
268 268
 	error, desc = executeCommand("xsltproc examples.xsl xep-" + nr + ".xml > " + XEPPATH + "/examples/" + nr + ".xml")
269 269
 	if not checkError(error, desc):
270 270
 		return False
271
-	
271
+
272 272
 	error, desc = executeCommand(" cp xep-" + nr + ".xml " + XEPPATH + "/")
273 273
 	if not checkError(error, desc):
274 274
 		return False
@@ -280,47 +280,47 @@ def buildPDF( file, nr ):
280 280
 	error, desc = executeCommand("xsltproc -o /tmp/xepbuilder/xep-" + nr + ".tex.xml xep2texml.xsl " + file)
281 281
 	if not checkError(error, desc):
282 282
 		return False
283
-	
283
+
284 284
 	error, desc = executeCommand("texml -e utf8 /tmp/xepbuilder/xep-" + nr + ".tex.xml /tmp/xepbuilder/xep-" + nr + ".tex")
285 285
 	if not checkError(error, desc):
286 286
 		return False
287
-	
287
+
288 288
 	#detect http urls and escape them to make them breakable
289 289
 	# this should match all urls in free text; not the urls in xml:ns or so..so no " or ' in front.
290 290
 	error, desc = executeCommand('''sed -i 's|\([\s"]\)\([^"]http://[^ "]*\)|\1\\path{\2}|g' /tmp/xepbuilder/xep-''' + nr + ".tex")
291 291
 	if not checkError(error, desc):
292 292
 		return False
293
-	
293
+
294 294
 	#adjust references
295 295
 	error, desc = executeCommand('''sed -i 's|\\hyperref\[#\([^}]*\)\]|\\hyperref\[\1\]|g' /tmp/xepbuilder/xep-''' + nr + ".tex")
296 296
 	if error != 0:
297 297
 		if verbose == 1:
298 298
 			print "Error: ", desc
299 299
 		return False
300
-	
300
+
301 301
 	error, desc = executeCommand('''sed -i 's|\\pageref{#\([^}]*\)}|\\pageref{\1}|g' /tmp/xepbuilder/xep-''' + nr + ".tex")
302 302
 	if not checkError(error, desc):
303 303
 		return False
304
-	
304
+
305 305
 	olddir = os.getcwd()
306 306
 	os.chdir("/tmp/xepbuilder")
307
-	
307
+
308 308
 	error, desc = executeCommand("xelatex -interaction=batchmode xep-" + nr + ".tex")
309 309
 	#if not checkError(error, desc):
310 310
 	#	os.chdir(olddir)
311 311
 	#	return False
312
-		
312
+
313 313
 	#error, desc = executeCommand("xelatex -interaction=batchmode xep-" + nr + ".tex")
314 314
 	#if not checkError(error, desc):
315 315
 	#	os.chdir(olddir)
316 316
 	#	return False
317
-	
317
+
318 318
 	os.chdir(olddir)
319
-	
319
+
320 320
 	error, desc = executeCommand("cp /tmp/xepbuilder/xep-" + nr + ".pdf " + XEPPATH + "/")
321 321
 	if not checkError(error, desc):
322 322
 		return False
323
-		
323
+
324 324
 	return True
325 325
 
326 326
 def buildXEP( filename ):
@@ -329,7 +329,7 @@ def buildXEP( filename ):
329 329
 	if not xepfilepath:
330 330
 		print "getLatestXEPContent (ERROR)"
331 331
 		return
332
-	
332
+
333 333
 	files_to_delete.append(xepfilepath)
334 334
 	if not fast:
335 335
 		print "Building " + filename + ": ",
@@ -337,14 +337,14 @@ def buildXEP( filename ):
337 337
 			print "XHTML(OK) / ",
338 338
 		else:
339 339
 			print "XHTML(ERROR) / ",
340
-		
340
+
341 341
 		if buildPDF( xepfilepath, nr ):
342 342
 			print "PDF(OK)"
343 343
 		else:
344 344
 			print "PDF(ERROR)"
345 345
 	else:
346 346
 		print "Building " + filename + " (FAST MODE)"
347
-	
347
+
348 348
 	x = XEPTable(CONFIGPATH + "/extensions.xml", XEPPATH + "/xeps.xml")
349 349
 	xinfo = XEPInfo(xepfilepath, False)
350 350
 	x.setXEP( xinfo )
@@ -355,7 +355,7 @@ def buildAll():
355 355
 	files.sort(key=lambda x: x.lower())
356 356
 	for file in files:
357 357
 		buildXEP( file )
358
-		
358
+
359 359
 def makeBundle():
360 360
 	print "Creating the bundle...",
361 361
 	executeCommand("mkdir /tmp/xepbundle")
@@ -382,13 +382,13 @@ def main(argv):
382 382
 	global CONFIGPATH
383 383
 	global fast
384 384
 	buildall = False
385
-	
385
+
386 386
 	try:
387 387
 		options, remainder = getopt.gnu_getopt(argv, "vaf")
388 388
 	except getopt.GetoptError:
389 389
 		usage()
390 390
 		sys.exit(2)
391
-	
391
+
392 392
 	for opt, arg in options:
393 393
 		if opt in ('-v'):
394 394
 			verbose = True
@@ -396,37 +396,37 @@ def main(argv):
396 396
 			buildall = True
397 397
 		elif opt in ('-f'):
398 398
 			fast = True
399
-	
399
+
400 400
 	if len(remainder) > 0:
401 401
 		try:
402 402
 			xep = int(remainder[0])
403 403
 			xep = "xep-%04d.xml" % xep
404 404
 		except:
405 405
 			xep = remainder[0]
406
-		
406
+
407 407
 	executeCommand("mkdir /tmp/xepbuilder")
408 408
 	executeCommand("cp ../images/xmpp.pdf /tmp/xepbuilder/xmpp.pdf")
409 409
 	executeCommand("cp ../images/xmpp-text.pdf /tmp/xepbuilder/xmpp-text.pdf")
410 410
 	executeCommand("cp -r deps/* /tmp/xepbuilder/")
411
-	
411
+
412 412
 	executeCommand("cp xep.ent /tmp/xep.ent")
413 413
 	files_to_delete.append("/tmp/xep.ent")
414
-	
414
+
415 415
 	if buildall:
416 416
 		buildAll()
417 417
 	else:
418 418
 		buildXEP( xep )
419
-	
419
+
420 420
 	# remove xep temporary files
421 421
 	for filename in files_to_delete:
422 422
 	    executeCommand("rm " + filename)
423
-	
423
+
424 424
 	executeCommand("sed -e '1s/<?[^?]*?>//' " + CONFIGPATH + "/extensions.xml > " + XEPPATH + "/../includes/xeplist.txt")
425
-	
425
+
426 426
 	executeCommand("rm -rfd /tmp/xepbuilder")
427
-	
427
+
428 428
 	makeBundle()
429
-	
430
-	
429
+
430
+
431 431
 if __name__ == "__main__":
432 432
 	main(sys.argv[1:])

+ 3
- 3
lastcall.py View File

@@ -54,7 +54,7 @@ def getText(nodelist):
54 54
 # get the seconds in the Unix era
55 55
 now = int(time.time())
56 56
 
57
-# READ IN ARGS: 
57
+# READ IN ARGS:
58 58
 #
59 59
 # 1. XEP number
60 60
 # 2. end date
@@ -115,9 +115,9 @@ remark = getText(remarkNode.childNodes)
115 115
 #
116 116
 #    1. Is this specification needed to fill gaps in the XMPP
117 117
 #       protocol stack or to clarify an existing protocol?
118
-#    2. Does the specification solve the problem stated in the 
118
+#    2. Does the specification solve the problem stated in the
119 119
 #       introduction and requirements?
120
-#    3. Do you plan to implement this specification in your code? 
120
+#    3. Do you plan to implement this specification in your code?
121 121
 #       If not, why not?
122 122
 #    4. Do you have any security concerns related to this specification?
123 123
 #    5. Is the specification accurate and clearly written?

+ 1
- 1
protopage.xsl View File

@@ -55,7 +55,7 @@ THE SOFTWARE.
55 55
       </head>
56 56
       <body>
57 57
         <h1><xsl:value-of select='/xep/header/shortname'/></h1>
58
-        <p>This page provides information about the XML namespaces defined in 
58
+        <p>This page provides information about the XML namespaces defined in
59 59
         <a>
60 60
           <xsl:attribute name='href'>
61 61
             <xsl:text>http://xmpp.org/extensions/xep-</xsl:text>

+ 15
- 15
xep.xsd View File

@@ -62,20 +62,20 @@ THE SOFTWARE.
62 62
         <xs:element name='number' type='xs:byte'/>
63 63
         <xs:element ref='status'/>
64 64
         <xs:element name='lastcall' minOccurs='0' type='xs:string'/>
65
-        <xs:element name='interim' minOccurs='0' type='empty'/> 
66
-        <xs:element ref='type'/> 
65
+        <xs:element name='interim' minOccurs='0' type='empty'/>
66
+        <xs:element ref='type'/>
67 67
         <xs:element name='sig' type='xs:string'/>
68 68
         <xs:element name='approver' type='xs:string'/>
69 69
         <xs:element ref='dependencies'/>
70 70
         <xs:element ref='supersedes'/>
71 71
         <xs:element ref='supersededby'/>
72 72
         <xs:element name='shortname' type='xs:NCName'/>
73
-        <xs:element ref='schemaloc' minOccurs='0' maxOccurs='unbounded'/> 
74
-        <xs:element name='registry' minOccurs='0' type='empty'/> 
73
+        <xs:element ref='schemaloc' minOccurs='0' maxOccurs='unbounded'/>
74
+        <xs:element name='registry' minOccurs='0' type='empty'/>
75 75
         <xs:element name='discuss' minOccurs='0' type='xs:string'/>
76 76
         <xs:element name='expires' minOccurs='0' type='xs:string'/>
77
-        <xs:element ref='author' minOccurs='1' maxOccurs='unbounded'/> 
78
-        <xs:element ref='revision' minOccurs='1' maxOccurs='unbounded'/> 
77
+        <xs:element ref='author' minOccurs='1' maxOccurs='unbounded'/>
78
+        <xs:element ref='revision' minOccurs='1' maxOccurs='unbounded'/>
79 79
         <xs:element ref='councilnote' minOccurs='0'/>
80 80
       </xs:sequence>
81 81
     </xs:complexType>
@@ -180,7 +180,7 @@ THE SOFTWARE.
180 180
       </xs:sequence>
181 181
     </xs:complexType>
182 182
   </xs:element>
183
-  
183
+
184 184
   <xs:element name='councilnote'>
185 185
     <xs:complexType>
186 186
       <xs:choice maxOccurs='unbounded'>
@@ -341,7 +341,7 @@ THE SOFTWARE.
341 341
     <xs:complexType>
342 342
       <xs:simpleContent>
343 343
         <xs:extension base='empty'>
344
-          <xs:attribute name='source' use='required'/> 
344
+          <xs:attribute name='source' use='required'/>
345 345
         </xs:extension>
346 346
       </xs:simpleContent>
347 347
     </xs:complexType>
@@ -351,7 +351,7 @@ THE SOFTWARE.
351 351
     <xs:complexType>
352 352
       <xs:simpleContent>
353 353
         <xs:extension base='xs:string'>
354
-          <xs:attribute name='url' use='required'/> 
354
+          <xs:attribute name='url' use='required'/>
355 355
         </xs:extension>
356 356
       </xs:simpleContent>
357 357
     </xs:complexType>
@@ -363,7 +363,7 @@ THE SOFTWARE.
363 363
     <xs:complexType>
364 364
       <xs:simpleContent>
365 365
         <xs:extension base='xs:string'>
366
-          <xs:attribute name='caption' use='optional'/> 
366
+          <xs:attribute name='caption' use='optional'/>
367 367
         </xs:extension>
368 368
       </xs:simpleContent>
369 369
     </xs:complexType>
@@ -373,7 +373,7 @@ THE SOFTWARE.
373 373
     <xs:complexType>
374 374
       <xs:simpleContent>
375 375
         <xs:extension base='xs:string'>
376
-          <xs:attribute name='caption' use='optional'/> 
376
+          <xs:attribute name='caption' use='optional'/>
377 377
         </xs:extension>
378 378
       </xs:simpleContent>
379 379
     </xs:complexType>
@@ -401,8 +401,8 @@ THE SOFTWARE.
401 401
     <xs:complexType>
402 402
       <xs:simpleContent>
403 403
         <xs:extension base='xs:string'>
404
-          <xs:attribute name='colspan' use='optional'/> 
405
-          <xs:attribute name='rowspan' use='optional'/> 
404
+          <xs:attribute name='colspan' use='optional'/>
405
+          <xs:attribute name='rowspan' use='optional'/>
406 406
         </xs:extension>
407 407
       </xs:simpleContent>
408 408
     </xs:complexType>
@@ -412,8 +412,8 @@ THE SOFTWARE.
412 412
     <xs:complexType>
413 413
       <xs:simpleContent>
414 414
         <xs:extension base='xs:string'>
415
-          <xs:attribute name='colspan' use='optional'/> 
416
-          <xs:attribute name='rowspan' use='optional'/> 
415
+          <xs:attribute name='colspan' use='optional'/>
416
+          <xs:attribute name='rowspan' use='optional'/>
417 417
         </xs:extension>
418 418
       </xs:simpleContent>
419 419
     </xs:complexType>

+ 13
- 14
xepinfo.py View File

@@ -62,48 +62,47 @@ class XEPInfo:
62 62
 		revNode = (headerNode.getElementsByTagName("revision")[0])
63 63
 		self.version = getText((revNode.getElementsByTagName("version")[0]).childNodes)
64 64
 		self.date = getText((revNode.getElementsByTagName("date")[0]).childNodes)
65
-		
65
+
66 66
 		titleNode = (headerNode.getElementsByTagName("interim"))
67 67
 		if titleNode:
68 68
 		    self.interim = True;
69 69
 		else:
70 70
 		    self.interim = False;
71
-		
71
+
72 72
 		depNode = headerNode.getElementsByTagName("dependencies")
73 73
 		self.depends = []
74 74
 		if depNode:
75 75
 			depNode = depNode[0]
76 76
 			for dep in depNode.getElementsByTagName("spec"):
77 77
 				self.depends.append(getText(dep.childNodes))
78
-	
78
+
79 79
 	def getInterim(self):
80 80
 	    return self.interim
81
-		
81
+
82 82
 	def getNr(self):
83 83
 		return self.nr
84
-	
84
+
85 85
 	def getTitle(self):
86 86
 		return self.title
87
-	
87
+
88 88
 	def getShortname(self):
89 89
 		return self.shortname
90
-	
90
+
91 91
 	def getAbstract(self):
92 92
 		return self.abstract
93
-	
93
+
94 94
 	def getStatus(self):
95 95
 		return self.status
96
-		
96
+
97 97
 	def getVersion(self):
98 98
 		return self.version
99
-	
99
+
100 100
 	def getType(self):
101 101
 		return self.type
102
-	
102
+
103 103
 	def getDate(self):
104 104
 		return self.date
105
-	
105
+
106 106
 	def getDepends(self):
107 107
 		return self.depends
108
-	
109
-	
108
+

+ 3
- 3
xeputil.py View File

@@ -1,6 +1,6 @@
1 1
 # File: xeputil.py
2 2
 # Version: 0.2
3
-# Description: xep utility functions 
3
+# Description: xep utility functions
4 4
 # Last Modified: 2010
5 5
 # Author: Tobias Markmann (tm@ayena.de)
6 6
 
@@ -54,13 +54,13 @@ class XEP:
54 54
 		revs = []
55 55
 		for rev in fctx.filelog():
56 56
 			revs.append(fctx.filectx(rev).rev())
57
-		
57
+
58 58
 		return sorted(revs)
59 59
 
60 60
 	def contentOfRevision(self, revision):
61 61
 		repo = hg.repository(ui.ui(), self.BASEDIR)
62 62
 		fctx = repo.filectx("xep-" + self.nr + ".xml", revision)
63
-		
63
+
64 64
 		# load content for that revision
65 65
 		file_text = fctx.data()
66 66
 		return file_text

+ 20
- 20
xmpp.css View File

@@ -20,7 +20,7 @@ BODY {
20 20
 #main {
21 21
     border: 0px;
22 22
     color: #000000;
23
-    font-weight: normal; 
23
+    font-weight: normal;
24 24
     margin: 0% 0% 5% 17%;
25 25
     padding: 4px 2% 10px 2%;
26 26
     text-decoration: none;
@@ -30,7 +30,7 @@ BODY {
30 30
     clear: both;
31 31
     color: #666666;
32 32
     font-size: x-small;
33
-    font-weight: normal; 
33
+    font-weight: normal;
34 34
     text-align: center;
35 35
     text-decoration: none;
36 36
     }
@@ -70,11 +70,11 @@ ul {
70 70
     font-weight: bold;
71 71
     }
72 72
 .box {
73
-    border: thin dotted; 
74
-    padding-bottom: 1em; 
75
-    padding-left: 2em; 
76
-    padding-right: 2em; 
77
-    padding-top: 1em; 
73
+    border: thin dotted;
74
+    padding-bottom: 1em;
75
+    padding-left: 2em;
76
+    padding-right: 2em;
77
+    padding-top: 1em;
78 78
     }
79 79
 .caption {
80 80
     font-weight: bold;
@@ -84,11 +84,11 @@ ul {
84 84
     white-space: pre;
85 85
     }
86 86
 .def {
87
-    text-indent: -6.3em; 
88
-    padding-bottom: 1em; 
89
-    padding-left: 6.5em; 
90
-    padding-right: 10em; 
91
-    padding-top: 1em; 
87
+    text-indent: -6.3em;
88
+    padding-bottom: 1em;
89
+    padding-left: 6.5em;
90
+    padding-right: 10em;
91
+    padding-top: 1em;
92 92
     }
93 93
 .em {
94 94
     font-style: italic;
@@ -110,26 +110,26 @@ ul {
110 110
 .highlight {
111 111
     color: #336699;
112 112
     }
113
-.nav { 
113
+.nav {
114 114
     font-size: small;
115 115
     line-height: 45%;
116
-    text-decoration: none; 
117
-    white-space: nowrap; 
118
-    } 
119
-.navhead { 
116
+    text-decoration: none;
117
+    white-space: nowrap;
118
+    }
119
+.navhead {
120 120
     color: #336699;
121 121
     font-size: medium;
122 122
     line-height: 90%;
123 123
     padding-left: 0px;
124
-    text-decoration: none; 
124
+    text-decoration: none;
125 125
     }
126 126
 .pagehead {
127 127
     color: #336699;
128
-    text-decoration: none; 
128
+    text-decoration: none;
129 129
     }
130 130
 A:visited.pagehead {
131 131
     color: #336699;
132
-    text-decoration: none; 
132
+    text-decoration: none;
133 133
     }
134 134
 .ref {
135 135
     font-weight: bold;

Loading…
Cancel
Save