git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c21cd6
)
page: capture multiline titles in article contents
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 30 Nov 2019 22:51:38 +0000
(23:51 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 5 Dec 2019 18:02:07 +0000
(19:02 +0100)
Fix recent page (doc/alv/2019-11-26/cv) containing subtitle.
article.inc.php
patch
|
blob
|
history
diff --git
a/article.inc.php
b/article.inc.php
index d42e49823c96b2536613c806f5399194b7b6c414..ea958fadd171a9a87de4e645f5d78d82a8c3a116 100644
(file)
--- a/
article.inc.php
+++ b/
article.inc.php
@@
-35,7
+35,7
@@
class ArchiveArticle
}
@list ($this->preface, $this->title, $this->body) =
- preg_split('{<h2>(.*?)</h2>\s*}', $this->raw, 2, PREG_SPLIT_DELIM_CAPTURE);
+ preg_split('{<h2>(.*?)</h2>\s*}
s
', $this->raw, 2, PREG_SPLIT_DELIM_CAPTURE);
}
}