Alex Schroeder
58e9a1e240
use v5.10 everywhere + enabled test in meta.t
2015-08-18 10:48:03 +02:00
Aleks-Daniel Jakimenko
df87ff82c3
No more redundant 'package OddMuse;'
2015-04-27 17:41:59 +03:00
Aleks-Daniel Jakimenko
7112f1c170
No more trailing whitespace (this time for sure)
2015-04-17 01:43:19 +03:00
Aleks-Daniel Jakimenko
c7bd5617ff
No more trailing whitespace
2015-04-17 01:39:47 +03:00
Aleks-Daniel Jakimenko
40ec24349a
No more "*Sub = *NewSub", \&NewSub used instead. (Partial progress)
2015-04-11 23:41:33 +03:00
Aleks-Daniel Jakimenko
6f8d281d79
No more "use vars"!
2015-04-10 13:31:28 +03:00
Alex Schroeder
994de81c41
edit-paragraphs.pl: Fix bad filename in module description
2015-04-10 08:36:26 +02:00
Aleks-Daniel Jakimenko
4492ede096
"use strict;" in modules (some modules have problems)
2015-03-27 03:01:01 +02:00
Alex Schroeder
ce82a328b6
edit-paragraphs: fix $around parameter
...
In bullet lists, the $around parameter would overshoot. The link would
say around=20, for example, when in fact the correct value would be
around=18. It would add the "* " of the next list item, apparently. The
edit link would still look good because the test we're using is
"$EditParagraphs[0]->[1] <= $pos" -- but if we then don't set "$pos =
$EditParagraphs[0]->[1]" it won't help as we'll get a "Could not
identify the paragraph you were editing" error as soon as we try to edit
with around=20 instead of around=18.
2014-12-10 09:05:14 +01:00
Alex Schroeder
770de2986a
edit-paragraphs.pl: handle page names containing &
2014-12-09 02:56:23 +01:00
Alex Schroeder
471994f7b1
Merge branch 'as/search-form-rewrites' of git.sv.gnu.org:/srv/git/oddmuse into as/search-form-rewrites
...
Conflicts:
modules/edit-paragraphs.pl
2014-12-03 08:37:39 +01:00
Alex Schroeder
ccaf283204
edit-paragraphs.pl: handle </p>\s*</form>
2014-11-30 01:22:45 +01:00
Alex Schroeder
76c92f027c
edit-paragraphs.pl: handle empty rows
2014-11-26 12:08:38 +01:00
Alex Schroeder
6f04d2044f
edit-paragraphs: get rid of fuzzy matching
...
Too many bugs!
2014-11-10 23:17:00 +01:00
Alex Schroeder
8a2c9eca9c
edit-paragraphs: fix HTML quoting issues
2014-11-10 22:10:51 +01:00
Alex Schroeder
f39cfd3235
edit-paragraphs.pl: handle trailing newlines
...
This used to generate an extra entry for @EditParagraphs which in turn
prevented the page from ending with an edit link if it ended with
multiple newlines.
Also made $EditParagraphPencil settable in the config file.
2014-11-10 09:45:59 +01:00
Alex Schroeder
b540093c2c
edit-paragraphs: handle pre, hr.
2014-11-09 13:09:44 +01:00
Alex Schroeder
a56b92ecb3
edit-paragraphs: fix HTML escaping
2014-11-08 21:15:15 +01:00
Alex Schroeder
114d914754
edit-paragraphs: pass around parameter to the form
2014-11-08 18:33:52 +01:00
Alex Schroeder
003357acad
edit-paragraphs: handle multiple paragraphs
2014-11-08 18:00:16 +01:00
Alex Schroeder
88475c3e41
edit-paragraphs: fiddled with unit tests
...
Trying to find a constellation to reproduce missing edit links.
Adding support for editing table rows.
2014-11-08 13:37:26 +01:00
Alex Schroeder
e80f05301d
edit-paragraphs: added unit test, fixed table bug
...
After a table, we'd get a lone link in a separate paragraph, just like
headers.
2014-11-07 23:04:12 +01:00
Alex Schroeder
a624e78975
edit-paragraphs: added unit tests, fixed table bug
...
Before a table, we'd get a lone link.
2014-11-07 22:47:02 +01:00
Alex Schroeder
3962068385
edit-paragraphs.pl: improve caching
...
Hook into PrintWikiToHTML instead of PrintPageContent in order to
avoid adding an edit link after every page link (as these are the
dirty blocks that get printed from the cache).
2014-11-06 16:01:01 +01:00
Alex Schroeder
a0b74ac3c6
edit-paragraph.pl: fixing stuff that didn't work
2014-11-06 15:38:21 +01:00
Alex Schroeder
870d75ac64
edit-paragraphs.pl: hack $Fragment
...
In order to get the edit button into the headings, we hack it into
$Fragment -- the current, clean HTML block being assembled by
ApplyRules.
2014-11-06 15:00:46 +01:00
Alex Schroeder
42d8260ce4
edit-paragraphs.pl: remove \r
...
Multiline paragraphs were not replaced correctly because of extra \r
in line endings.
2014-11-06 14:40:23 +01:00
Alex Schroeder
bfda4abe54
New module.
2014-11-06 13:43:20 +01:00