diff options
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r-- | src/htmlgen.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index 6193223..54b815c 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -1113,3 +1113,23 @@ void HtmlGenerator::writeNonBreakableSpace(int n) t << " "; } } + +void HtmlGenerator::writeLineNumber(const char *ref,const char *file, + const char *anchor,int l) +{ + QCString lineNumber,lineAnchor; + lineNumber.sprintf("%05d",l); + lineAnchor.sprintf("l%05d",l); + + if (file) + { + startCodeAnchor(lineAnchor); + writeCodeLink(ref,file,anchor,lineNumber); + endCodeAnchor(); + } + else + { + codify(lineNumber); + } + codify(" "); +} |