From b2d28e2490c3c032983454f7817584d1eae64c18 Mon Sep 17 00:00:00 2001 From: John Hewson Date: Tue, 29 Jan 2013 13:38:34 +0000 Subject: [PATCH] fixed formatting --- src/HTMLRenderer/export.cc | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/HTMLRenderer/export.cc b/src/HTMLRenderer/export.cc index a83709b..ff76fc6 100644 --- a/src/HTMLRenderer/export.cc +++ b/src/HTMLRenderer/export.cc @@ -43,8 +43,8 @@ namespace pdf2htmlEX { } f_css.fs << "@font-face{" - << "font-family:f" << info.id << ";" - << "src:url("; + << "font-family:f" << info.id << ";" + << "src:url("; { auto fn = str_fmt("f%llx%s", info.id, suffix.c_str()); @@ -63,23 +63,23 @@ namespace pdf2htmlEX { } f_css.fs << ")" - << "format(\"" << format << "\");" - << "}" // end of @font-face - << ".f" << info.id << "{" - << "font-family:f" << info.id << ";" - << "line-height:" << round(info.ascent - info.descent) << ";" - << "font-style:normal;" - << "font-weight:normal;" - << "visibility:visible;" - << "}" // end of .f - << endl; + << "format(\"" << format << "\");" + << "}" // end of @font-face + << ".f" << info.id << "{" + << "font-family:f" << info.id << ";" + << "line-height:" << round(info.ascent - info.descent) << ";" + << "font-style:normal;" + << "font-weight:normal;" + << "visibility:visible;" + << "}" // end of .f + << endl; } static string general_font_family(GfxFont * font) { - if(font -> isFixedWidth()) + if(font->isFixedWidth()) return "monospace"; - else if (font -> isSerif()) + else if (font->isSerif()) return "serif"; else return "sans-serif";