Fixes #179. Handle modules with no descriptions

git-svn-id: file:///home/svn/framework3/trunk@5344 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2008-01-25 02:33:52 +00:00
parent 1e2ec68913
commit 5b2af0fe18
1 changed files with 1 additions and 2 deletions

View File

@ -52,11 +52,10 @@ module Gtk2
end
desc.strip!
if(not (desc[-1] >= 0x21 and desc[-1] <= 0x2e) )
if(desc.length > 0 and not (desc[-1] >= 0x21 and desc[-1] <= 0x2e) )
desc << "."
end
@buffer.insert_with_tags(start, "Module: ", "_")
@buffer.insert_with_tags(start, "#{obj.fullname}\n\n", "black_wrap")