dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
728cd57
)
parser test editor: Fix emitting of !! hooks
author
Kunal Mehta
<legoktm@member.fsf.org>
Sun, 29 Jan 2017 09:56:43 +0000
(
01:56
-0800)
committer
Tim Starling
<tstarling@wikimedia.org>
Tue, 31 Jan 2017 03:12:15 +0000
(
03:12
+0000)
The first newline was missing so a block like:
!! hooks
source
!! endhooks
would turn into:
!! hookssource
!! endhooks
Change-Id: I2a4c5e52050d55fb0c9b4f5d0494eb00e34b233c
tests/parser/TestFileEditor.php
patch
|
blob
|
history
diff --git
a/tests/parser/TestFileEditor.php
b/tests/parser/TestFileEditor.php
index
05b1216
..
7f64671
100644
(file)
--- a/
tests/parser/TestFileEditor.php
+++ b/
tests/parser/TestFileEditor.php
@@
-125,7
+125,7
@@
class TestFileEditor {
$line = $this->lines[$this->pos++];
$heading = $this->getHeading( $line );
$expectedEnd = 'end' . $heading;
- $contents =
$line
;
+ $contents =
"$line\n"
;
do {
$line = $this->lines[$this->pos++];