]> granicus.if.org Git - clang/commitdiff
Minor CSS tweaking (smaller h1 tags).
authorTed Kremenek <kremenek@apple.com>
Thu, 27 Mar 2008 17:28:58 +0000 (17:28 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 27 Mar 2008 17:28:58 +0000 (17:28 +0000)
Bug fix in EscapeText (for std::string) where spaces were not properly emitted.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48889 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/HTMLRewrite.cpp

index bb4ae862615f8aa906082179844002a908b5d678..f3371a01f8186b25af675c0711e30761ec7bf9ce 100644 (file)
@@ -61,6 +61,7 @@ std::string html::EscapeText(const std::string& s, bool EscapeSpaces) {
         
       case ' ':
         if (EscapeSpaces) os << "&#32;";
+        else os << ' ';
         break;
         
         case '<': os << "&lt;"; break;
@@ -164,7 +165,8 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, unsigned FileID) {
     os << "<html>\n<head>\n"
        << "<style type=\"text/css\">\n"
        << " body { color:#000000; background-color:#ffffff }\n"
-       << " body { font-family:Helvetica, sans-serif }\n"
+       << " body { font-family:Helvetica, sans-serif; font-size:10pt }\n"
+       << " h1 { font-size:12pt }\n"
        << " .code { border-spacing:0px; width:100%; }\n"
        << " .code { font-family: \"Andale Mono\", fixed; font-size:10pt }\n"
        << " .code { line-height: 1.2em }\n"