page: capture multiline titles in article contents
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 30 Nov 2019 22:51:38 +0000 (23:51 +0100)
committerMischa 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

index d42e49823c96b2536613c806f5399194b7b6c414..ea958fadd171a9a87de4e645f5d78d82a8c3a116 100644 (file)
@@ -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);
                }
        }