[gitg/wip/techlivezh/diff-view-clean-up: 7/7] Replace 'FILE_BODY' at the end



commit 348b06da5bd28bba4059a4b06d6a922d265d943f
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Fri Dec 20 11:42:35 2013 +0800

    Replace 'FILE_BODY' at the end
    
    It rarely happens, if 'FILE_BODY' contains placeholders, it has to be
    the last placeholder to be replaced.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720886

 libgitg/resources/diff-view-html-builder.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgitg/resources/diff-view-html-builder.js b/libgitg/resources/diff-view-html-builder.js
index 4934292..276e00f 100644
--- a/libgitg/resources/diff-view-html-builder.js
+++ b/libgitg/resources/diff-view-html-builder.js
@@ -134,9 +134,9 @@ function diff_file(file, lnstate, data)
 
        return exec_template(data.file_template, {
                'STAGEBUTTON': lnstate.stagebutton,
+               'FILE_STATS': file_stats,
                'FILE_PATH': file_path,
                'FILE_BODY': file_body,
-               'FILE_STATS': file_stats,
        });
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]