From: <rea...@us...> - 2017-04-06 18:26:42
|
Revision: 7551 http://sourceforge.net/p/sashimi/code/7551 Author: real_procopio Date: 2017-04-06 18:26:40 +0000 (Thu, 06 Apr 2017) Log Message: ----------- [Pep3D & Lorikeet] Properly escape percent % within fprintf! Modified Paths: -------------- trunk/trans_proteomic_pipeline/src/Visualization/Comet/plot-msms/plot-msms-js.cpp trunk/trans_proteomic_pipeline/src/Visualization/Pep3D/cgi_Pep3D_xml/cgi_Pep3D_xml.cpp Modified: trunk/trans_proteomic_pipeline/src/Visualization/Comet/plot-msms/plot-msms-js.cpp =================================================================== --- trunk/trans_proteomic_pipeline/src/Visualization/Comet/plot-msms/plot-msms-js.cpp 2017-04-06 00:49:08 UTC (rev 7550) +++ trunk/trans_proteomic_pipeline/src/Visualization/Comet/plot-msms/plot-msms-js.cpp 2017-04-06 18:26:40 UTC (rev 7551) @@ -173,10 +173,10 @@ printf(" <link REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"%s" "css/lorikeet.css\">\n", getHtmlUrl()); printf(" <style>\n\ html {\n\ - height:100%;\n\ + height:100%%;\n\ }\n\ body {\n\ - height:100%;\n\ + height:100%%;\n\ padding:0px;\n\ margin:0px;\n\ background-color:#ccc;\n\ @@ -184,7 +184,7 @@ }\n\ #wrapper {\n\ position:relative;\n\ - min-height:100%;\n\ + min-height:100%%;\n\ }\n\ #filler {\n\ height:80px;\n\ @@ -193,7 +193,7 @@ position:fixed;\n\ display:inline-block;\n\ white-space:nowrap;\n\ - width:100%;\n\ + width:100%%;\n\ min-height:70px;\n\ z-index:95;\n\ font-size:20px;\n\ @@ -219,7 +219,7 @@ padding-left:5px;\n\ padding-top:5px;\n\ height:70px;\n\ - width:100%;\n\ + width:100%%;\n\ color:#999;\n\ background-color:#eee;\n\ border-top: 1px solid #666;\n\ Modified: trunk/trans_proteomic_pipeline/src/Visualization/Pep3D/cgi_Pep3D_xml/cgi_Pep3D_xml.cpp =================================================================== --- trunk/trans_proteomic_pipeline/src/Visualization/Pep3D/cgi_Pep3D_xml/cgi_Pep3D_xml.cpp 2017-04-06 00:49:08 UTC (rev 7550) +++ trunk/trans_proteomic_pipeline/src/Visualization/Pep3D/cgi_Pep3D_xml/cgi_Pep3D_xml.cpp 2017-04-06 18:26:40 UTC (rev 7551) @@ -192,11 +192,11 @@ fprintf(file,".showit {display:table-row}\n"); fprintf(file,".visible{display:block}\n"); - fprintf(file,"body{height:100%; padding:0px; margin:0px; box-sizing:border-box; background-color:#ccc; font-family: Arial,sans-serif; font: small sans-serif; }\n"); - fprintf(file,"#wrapper { min-height:100%; position:relative; }\n"); + fprintf(file,"body{height:100%%; padding:0px; margin:0px; box-sizing:border-box; background-color:#ccc; font-family: Arial,sans-serif; font: small sans-serif; }\n"); + fprintf(file,"#wrapper { min-height:100%%; position:relative; }\n"); fprintf(file,"#filler { height:80px; }\n"); - fprintf(file,"footer { display:block; position:absolute; bottom:0; left:0; padding-left:5; padding-top:5; height:70px; width:100%; color:#999; background-color:#eee; border-top: 1px solid #666; box-sizing:border-box; box-shadow: 0 -6px 8px 0 rgba(0,0,0,0.3); }\n"); + fprintf(file,"footer { display:block; position:absolute; bottom:0; left:0; padding-left:5; padding-top:5; height:70px; width:100%%; color:#999; background-color:#eee; border-top: 1px solid #666; box-sizing:border-box; box-shadow: 0 -6px 8px 0 rgba(0,0,0,0.3); }\n"); fprintf(file,"h1 {font-family: Helvetica, Arial, Verdana, sans-serif; font-size: 24pt; font-weight:bold; color:#0E207F}\n"); fprintf(file,"h2 {font-family: Helvetica, Arial, sans-serif; font-size: 20pt; font-weight: bold; color:#0E207F}\n"); @@ -206,7 +206,7 @@ fprintf(file,"h6 {font-family: Helvetica, Arial, sans-serif; font-size: 8pt; color:#333333}\n"); fprintf(file,"table {border-collapse: collapse; border-color: #000000;}\n"); fprintf(file,"td {border-collapse: collapse; border-color: #000000;}\n"); - fprintf(file,".banner { position:fixed; display:inline-block; white-space:nowrap; width:100%; min-height:70; z-index:95; font-size:20px; color:#ffffff; background-color:#003F72; }\n"); + fprintf(file,".banner { position:fixed; display:inline-block; white-space:nowrap; width:100%%; min-height:70px; z-index:95; font-size:20px; color:#ffffff; background-color:#003F72; }\n"); fprintf(file,".banner::after { font-size:60px; right:10px;top:0px; position:absolute; color:rgba(255,255,255,0.3); font-weight:bold; letter-spacing:15px; content:attr(banner-bg-text); pointer-events:none; }\n"); fprintf(file,".orange {color:#E98300;text-transform:initial;}\n"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |