diff --git a/tools/diff/diff.xml b/tools/diff/diff.xml index b3070c6903..892458b87d 100644 --- a/tools/diff/diff.xml +++ b/tools/diff/diff.xml @@ -1,7 +1,7 @@ - + analyzes two files and generates an unidiff text file with information about the differences and an optional Html report - 3.7 + 3.10 0 @@ -13,10 +13,18 @@ '$diff_file'; - #if $generate_report: + diff + #if $report_format.report_format_select in ['txt_lines', 'html']: + ## the -u option is needed to convert the output later to HTML + --unified $report_format.unified + #else if $report_format.report_format_select == 'txt_columns': + -y + #end if + '$input1' '$input2' > '$diff_file' + #if $report_format.report_format_select == 'html': + && sed -e 's/@@title@@/Diff report for "$input1.element_identifier" and "$input2.element_identifier"/g' - -e 's/@@outputformat@@/'$output_format'/g' + -e 's/@@outputformat@@/'$report_format_select.output_format'/g' -e '/@@diffoutput@@/{r'$diff_file'' -e ';d}' '$__tool_directory__/template.html' > '$html_file' #end if @@ -25,23 +33,37 @@ - - - - - + + + + + + + + + + + + + + + + + - generate_report is True + report_format['report_format_select'] == 'html' - + + + @@ -51,7 +73,9 @@ - + + + @@ -63,7 +87,9 @@ - + + + @@ -73,8 +99,10 @@ - - + + + + @@ -85,8 +113,10 @@ - - + + + + @@ -97,7 +127,10 @@ - + + + +