summaryrefslogtreecommitdiffstats
path: root/clang/Driver/HTMLPrint.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-03-19 06:14:37 +0000
committerTed Kremenek <kremenek@apple.com>2008-03-19 06:14:37 +0000
commit966da4acc3455f36d89969b3687a44e9b3bc555c (patch)
treea0a2c593e20b835a6727ec482c7182291017c2cb /clang/Driver/HTMLPrint.cpp
parentf9d25185d5da9181278cf526c6d53f7249d02bf6 (diff)
downloadbcm5719-llvm-966da4acc3455f36d89969b3687a44e9b3bc555c.tar.gz
bcm5719-llvm-966da4acc3455f36d89969b3687a44e9b3bc555c.zip
Moved generation of html header/footer with builtin CSS to the rewriter library.
llvm-svn: 48537
Diffstat (limited to 'clang/Driver/HTMLPrint.cpp')
-rw-r--r--clang/Driver/HTMLPrint.cpp34
1 files changed, 1 insertions, 33 deletions
diff --git a/clang/Driver/HTMLPrint.cpp b/clang/Driver/HTMLPrint.cpp
index 93e544fc966..a513bf975dd 100644
--- a/clang/Driver/HTMLPrint.cpp
+++ b/clang/Driver/HTMLPrint.cpp
@@ -50,39 +50,7 @@ HTMLPrinter::~HTMLPrinter() {
html::EscapeText(R, FileID);
html::AddLineNumbers(R, FileID);
-
- // Generate header
-
- {
- std::ostringstream os;
-
- os << "<html>\n<head>\n"
- << " <style type=\"text/css\">\n"
- << " .codeblock { width:100% }\n"
- << " .codeline { font-family: \"Monaco\", fixed; font-size:11pt }\n"
- << " .codeline { height:1.5em; line-height:1.5em }\n"
- << " .nums, .lines { float:left; height:100% }\n"
- << " .nums { background-color: #eeeeee }\n"
- << " .nums { font-family: \"Andale Mono\", fixed; font-size:smaller }\n"
- << " .nums { width:2.5em; padding-right:2ex; text-align:right }\n"
- << " .lines { padding-left: 1ex; border-left: 3px solid #ccc }\n"
- << " .lines { white-space: pre }\n"
- << " </style>\n"
- << "</head>\n"
- << "<body>";
-
- R.InsertStrBefore(StartLoc, os.str());
- }
-
- // Generate footer
-
- {
- std::ostringstream os;
-
- os << "</body></html>\n";
- R.InsertStrAfter(EndLoc, os.str());
- }
-
+ html::AddHeaderFooterInternalBuiltinCSS(R, FileID);
// Emit the HTML.
OpenPOWER on IntegriCloud