From 37816f76e9a9263fda2708cf15d643a4b99e827d Mon Sep 17 00:00:00 2001
From: Lukas Rademacher <lukas@rademacher.ac>
Date: Sat, 28 Oct 2017 21:36:39 +0200
Subject: [PATCH] Local Drafts: show diff instead off full text

Show the diff between the local draft and the remote head version, instead of the fulltext of the local draft.
---
 inc/html.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/html.php b/inc/html.php
index 350c65f07..a21a31a8a 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -305,10 +305,10 @@ function html_draft(){
     $text  = cleanText(con($draft['prefix'],$draft['text'],$draft['suffix'],true));
 
     print p_locale_xhtml('draft');
+    html_diff($text, false);
     $form = new Doku_Form(array('id' => 'dw__editform'));
     $form->addHidden('id', $ID);
     $form->addHidden('date', $draft['date']);
-    $form->addElement(form_makeWikiText($text, array('readonly'=>'readonly')));
     $form->addElement(form_makeOpenTag('div', array('id'=>'draft__status')));
     $form->addElement($lang['draftdate'].' '. dformat(filemtime($INFO['draft'])));
     $form->addElement(form_makeCloseTag('div'));
-- 
GitLab