bug fix
This commit is contained in:
parent
ee42805e5f
commit
4654d76d39
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# DocBeuaty 0.2 (c) 2003 David Turner <david@freetype.org>
|
# DocBeauty 0.1 (c) 2003 David Turner <david@freetype.org>
|
||||||
#
|
#
|
||||||
# This program is used to beautify the documentation comments used
|
# This program is used to beautify the documentation comments used
|
||||||
# in the FreeType 2 public headers.
|
# in the FreeType 2 public headers.
|
||||||
|
@ -20,7 +20,10 @@ import sys, os, time, string, getopt
|
||||||
|
|
||||||
def beautify_block( block ):
|
def beautify_block( block ):
|
||||||
if block.content:
|
if block.content:
|
||||||
# only beautify documentation blocks
|
# convert all <XXXXX> tags to @XXXXX:
|
||||||
|
|
||||||
|
|
||||||
|
# now beautify the documentation "borders" themselves
|
||||||
lines = [ " /*************************************************************************" ]
|
lines = [ " /*************************************************************************" ]
|
||||||
for l in block.content:
|
for l in block.content:
|
||||||
lines.append( " *" + l )
|
lines.append( " *" + l )
|
||||||
|
|
|
@ -212,7 +212,7 @@ class SourceBlock:
|
||||||
# extract comment lines
|
# extract comment lines
|
||||||
lines = []
|
lines = []
|
||||||
|
|
||||||
for line0 in self.lines[1:]:
|
for line0 in self.lines:
|
||||||
m = self.format.column.match( line0 )
|
m = self.format.column.match( line0 )
|
||||||
if m:
|
if m:
|
||||||
lines.append( m.group(1) )
|
lines.append( m.group(1) )
|
||||||
|
@ -304,7 +304,7 @@ class SourceProcessor:
|
||||||
if self.format.end.match( line ):
|
if self.format.end.match( line ):
|
||||||
# that's a normal block end, add it to lines and
|
# that's a normal block end, add it to lines and
|
||||||
# create a new block
|
# create a new block
|
||||||
# self.lines.append( line )
|
self.lines.append( line )
|
||||||
self.add_block_lines()
|
self.add_block_lines()
|
||||||
|
|
||||||
elif self.format.column.match( line ):
|
elif self.format.column.match( line ):
|
||||||
|
|
Loading…
Reference in New Issue