summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r--src/htmlgen.cpp20
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 << "&nbsp;";
}
}
+
+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(" ");
+}