allpy
changeset 1141:026440428507
pair-cores/web: compare-aln-3d uses built-in Wt text->html instead of sed
If text format is set to plain text, then line breaks are replaced with <br>
(as planned). We do not need sed for this.
author | Boris Nagaev <bnagaev@gmail.com> |
---|---|
date | Mon, 14 Jan 2013 02:40:59 +0400 |
parents | 504dce0540eb |
children | 0df62d106146 |
files | pair_cores/web/compare-aln-3d.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/pair_cores/web/compare-aln-3d.cpp Mon Jan 14 02:31:29 2013 +0400 1.2 +++ b/pair_cores/web/compare-aln-3d.cpp Mon Jan 14 02:40:59 2013 +0400 1.3 @@ -12,6 +12,7 @@ 1.4 #include <Wt/WPushButton> 1.5 1.6 #include "wc/src/Wbi.hpp" 1.7 +#include "wc/src/FileView.hpp" 1.8 #include "wc/src/util.hpp" 1.9 1.10 using namespace Wt; 1.11 @@ -93,9 +94,10 @@ 1.12 execution_log->set_suggested_gen(boost::bind(name_gen2, "log")); 1.13 task->add_output(execution_log, tr("pair.out.Log")); 1.14 // 1.15 - PrintFileOutput* result = new PrintFileOutput("| sed \"s@^@<br/>@\" >"); 1.16 + PrintFileOutput* result = new PrintFileOutput(">"); 1.17 result->set_suggested_gen(boost::bind(name_gen2, "out")); 1.18 result->set_selectable(false); 1.19 + result->file_view()->set_format(Wt::PlainText); 1.20 task->add_output(result, tr("pair.out.Result")); 1.21 // 1.22 task->set_runner(new ForkingRunner("compare-aln-3d"));