bug fix
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
diff --git a/src/tools/docmaker/docbeauty.py b/src/tools/docmaker/docbeauty.py
index 057ed24..2a610eb 100644
--- a/src/tools/docmaker/docbeauty.py
+++ b/src/tools/docmaker/docbeauty.py
@@ -1,6 +1,6 @@
#!/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
# in the FreeType 2 public headers.
@@ -20,7 +20,10 @@ import sys, os, time, string, getopt
def beautify_block( block ):
if block.content:
- # only beautify documentation blocks
+ # convert all <XXXXX> tags to @XXXXX:
+
+
+ # now beautify the documentation "borders" themselves
lines = [ " /*************************************************************************" ]
for l in block.content:
lines.append( " *" + l )
diff --git a/src/tools/docmaker/sources.py b/src/tools/docmaker/sources.py
index 0a2942b..6fd07dc 100644
--- a/src/tools/docmaker/sources.py
+++ b/src/tools/docmaker/sources.py
@@ -212,7 +212,7 @@ class SourceBlock:
# extract comment lines
lines = []
- for line0 in self.lines[1:]:
+ for line0 in self.lines:
m = self.format.column.match( line0 )
if m:
lines.append( m.group(1) )
@@ -223,7 +223,7 @@ class SourceBlock:
if len(l) > 0:
for tag in re_markup_tags:
if tag.match( l ):
- self.content = lines
+ self.content = lines
return
def location( self ):
@@ -304,7 +304,7 @@ class SourceProcessor:
if self.format.end.match( line ):
# that's a normal block end, add it to lines and
# create a new block
- # self.lines.append( line )
+ self.lines.append( line )
self.add_block_lines()
elif self.format.column.match( line ):