summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-11-18 14:52:40 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-11-18 14:52:40 (GMT)
commitc736b03f16a88b6654ff9c1ae680e46b86e50218 (patch)
tree066b0bffed86445dbe3d494eaf31515f5b743e8c /src/htmlgen.cpp
parentfba77445463c412e6b514174df590fdce58838cf (diff)
downloadDoxygen-c736b03f16a88b6654ff9c1ae680e46b86e50218.zip
Doxygen-c736b03f16a88b6654ff9c1ae680e46b86e50218.tar.gz
Doxygen-c736b03f16a88b6654ff9c1ae680e46b86e50218.tar.bz2
Release-1.2.12
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(" ");
+}