Commit Graph

42 Commits

Author SHA1 Message Date
Phy fc55d0b2e6 remove string argument in assert - DiffEngine 2017-12-27 07:14:10 +08:00
Phy d3b71b9db3 add tests to DifferenceEngine and optimize each removal in it 2017-12-27 07:07:04 +08:00
Phy dd5c3e2b27 remove deprecated each calls in libraries 2017-12-20 20:20:20 +08:00
Takamura f50a239b3b I supplemented the existing comments on the methods in which there was not enough information to the standard phpDoc. 2017-03-31 09:33:33 +02:00
Andreas Gohr 34df7cb037 make merge conflict labels completely customizable 2016-04-13 11:52:54 +02:00
Andreas Gohr a297e675b3 Added 3way merge from PEAR Text_Diff3
This adds 3way merge functionality to our DifferenceEngine stack. The
code was taken from the PEAR Text_Diff3 package and adapted to work with
our implementation.

For the curious:
Here's a short Origin tree of the different versions of the Diff code to
make clear how our implementation is related to the PEAR package.

-- original code Geoffrey T. Dairiki
   `-- Adaption for the Horde project
       |-- Adaption for phpwiki
       |   `-- Adaption for MediaWiki
       |       `-- Adaption for DokuWiki
       `-- Creation of PEAR Text_Diff
2016-04-13 11:51:51 +02:00
Gerrit Uitslag 42ea7f447f Many PHPDocs, some unused and dyn declared vars
many PHPDocs
some unused variables
some dynamically declared variables declared
2014-10-01 11:30:27 +02:00
Matt Perry 7ef8e99fe6 Fix CodeSniffer violations
Change indentation to ensure code confirms to CodeSniffer rules.
2013-08-22 01:01:41 -07:00
hArpanet bfd197d22f Added comment to DiffFormatter _escape() method
Clarify use of _escape() method in base class.
2013-05-20 20:12:52 +02:00
Christopher Smith df9752e9c1 add comment to Unified Diff Formatter making it clear the output is unsafe for use in HTML as is 2013-04-10 18:01:04 +01:00
Christopher Smith 3a4ea35cfc replace remaining hardcoded 'colspan' values with ->colspan 2013-02-17 19:30:55 +00:00
Christopher Smith 333ef4f3bd Merge remote-tracking branch 'whoopdedo/diffmarkup' into FS#2720 2013-02-17 18:26:39 +00:00
Christopher Smith 60056e697f ensure diff formatters escape their output 2013-02-17 14:56:12 +00:00
Tom N Harris a69506c52f Remove the prefix from inline diffs.
The line prefix was not actually indicating what it should indicate.
In particular, anything in a "changed" block would show a "!" even
if the entire line was added or deleted. Better to print nothing than
something that's wrong.
2013-02-16 18:27:12 -05:00
Tom N Harris 56133a04d1 Fix width of indicator column. 2013-02-16 18:15:13 -05:00
Tom N Harris f76724a46d Move inline diff headers into a vertical column. 2013-02-16 16:07:00 -05:00
Anika Henke e260f93b6c xml compatibility fixes (mainly entities to unicode conversions) 2012-07-05 22:58:24 +01:00
Andreas Gohr ae7c596cf4 Merge branch 'master' into htmlmail
* master: (382 commits)
  Romanian language update
  Marathi language update
  Arabic Language Update
  when there's not enough space for images, make sure they stay proportional (might be FS#2480)
  added minimal RTL print styles (part of FS#2185)
  moved plugins' rtl.css to their style.css counterpart (part of FS#2185)
  removed all browser-specific gradients as the recently (in 42ff6730) introduced svg makes them unnecessary
  removed comments from accidentally commented lines in tpl_includeFile()
  removed obsolete template file
  added tpl_includeFile() to core
  Make getTitle method in remote interface public
  Changed an error code in XML-RPC interface. This error hasn't anything to do with the rest of the -32600 errors.
  BG: language update
  Korean language update
  fixed performance issues with gradient in Firefox (which also added gradient support for IE9) (FS#2447)
  deleted very old (and unused) images
  added accidentally removed '<?php' back in (was in 57fc5edd)
  wrapped X-UA-Compatible meta tag with conditional comments
  added explanation to todo in _forms.css
  removed problematic 'overflow: hidden' from lists again ('unfixes' FS#1950)
  ...

Conflicts:
	inc/auth.php
	inc/load.php
2012-04-15 13:45:45 +02:00
Andreas Gohr 63703ba5bd coding style updates 2012-03-16 12:09:30 +01:00
Andreas Gohr 47a906ead4 use inlinestyles for diffs in HTML mails 2012-03-09 09:17:01 +01:00
Anika Henke cfcd890b39 removed incorrect nbsps in diff view (FS#2223) 2011-04-16 20:16:25 +01:00
Piyush Mishra 5891862cf7 Using only __construct now 2011-03-23 20:51:04 +05:30
Piyush Mishra 988c134016 Done with DifferenceEngine.php 2011-03-23 09:43:38 +05:30
Adrian Lang 4f2305cb14 Fix whitespace handling in inline diff (closes FS#2161) 2011-02-06 16:49:52 +01:00
Andreas Gohr c495dc45de Added colspan option for the InlineDiffFormatter 2011-01-31 13:59:22 +01:00
Danny Lin c5982caa2e InlineWordLevelDiff regex should be /xsu - FS#2142 2011-01-23 16:50:04 +08:00
Anika Henke 5048c277bb fixed newlines nesting error (introduced by 7deca91b) 2010-12-06 19:47:43 +00:00
Michael Hamann e3776c06c3 Remove enc=utf-8 in VIM modeline as it is not allowed in VIM 7.3
As of VIM 7.3 it is no longer possible to specify the encoding in the
modeline. This gives an error message whenever such a file is opened,
thus this commit removes the enc setting from the modeline.
2010-11-29 16:19:49 +01:00
Xin LI 5e1ee18875 Fix unicode handling.
Suggested by:   MQ <antinvidia gmail com>

Signed-off-by: Xin LI <delphij@FreeBSD.org>
2010-11-22 21:19:43 +01:00
Robin Getz 812bb04e97 Add support for inline diff formatting
This patch only adds the capability to the Difference Engine lib, not to
the user interface, yet.
2010-11-20 11:53:38 +01:00
Robin Getz 7deca91be6 White space fixes only - no functional changes 2010-11-20 11:45:49 +01:00
Andreas Gohr f5b7878502 more code cleanup 2010-01-29 14:33:20 +01:00
Adrian Lang 2d880650d8 Finally fix whitespace and HTML problem in diff. 2010-01-12 14:35:12 +01:00
Andreas Gohr 07a8e691a6 better whitespace preserve fix in diffs
Ignore-this: ce1092e86cbb4911e285377233b89aa0

darcs-hash:20091119085441-6e07b-79f74d6349df87625aaaba919664879fcc440244.gz
2009-11-19 09:54:41 +01:00
Adrian Lang 7d044e2a07 Preserve all whitespaces in diff
darcs-hash:20091109122003-e4919-c5690b4fc4a3cc1c134f69c137f60155bcdfaa38.gz
2009-11-09 13:20:03 +01:00
Anika Henke ed7ecb791b FS#744 (template developers, heed the changes)
darcs-hash:20070514222527-d5083-53ed619daf07d0a84c52161465d163abf1400529.gz
2007-05-15 00:25:27 +02:00
chris 9b3a5b24f0 change non-breaking space encoding to utf-8
darcs-hash:20060906191207-9b6ab-2b1e3e4948f6c3e4c3b3857440ff790aa66e4614.gz
2006-09-06 21:12:07 +02:00
Ben Coburn 039bebbab7 removed a useless line
Commented out a wasteful line in the "DifferenceEngine" that was producing notices.

darcs-hash:20060710112411-05dcb-4861b7324dd720b9b1e85e221128f51fd57df4dd.gz
2006-07-10 13:24:11 +02:00
Andreas Gohr 98c868589e file cleanups
This patch cleans up the source code to satisfy the coding guidelines (see
http://wiki.splitbrain.org/wiki:development#coding_style)

It converts files to UNIX lineendings and removes tabs and trailing
whitespace. Not all files were cleaned yet.

darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz
2006-02-17 23:20:40 +01:00
andi 340756e4d1 removed closing php tag for includes
darcs-hash:20050413175338-9977f-c969db6f86df5df175db9a39b4fabb9f072f8f67.gz
2005-04-13 19:53:38 +02:00
andi 15fae1076f phpdoc comments
darcs-hash:20050114164057-9977f-e4936fde9037c65c3f32c30b31b2b7df35732f3a.gz
2005-01-14 17:40:57 +01:00
andi f3f0262c48 Initial revision.
darcs-hash:20050112202454-9977f-60936f24fe2092a30223627e0683de2df61d0c4a.gz
2005-01-12 21:24:54 +01:00