Skip to content
Permalink
Browse files

adds newline after top insertion

  • Loading branch information...
turnermm committed Mar 28, 2019
1 parent c5b5288 commit 043119d18f42d936c3c9c3f6d7d40e06c1366374
Showing with 2 additions and 2 deletions.
  1. +1 −1 plugin.info.txt
  2. +1 −1 syntax/anno.php
@@ -1,7 +1,7 @@
base annotate
author Myron Turner
email turnermm02@shaw.ca
date 2019-03-26
date 2019-03-28
name Annotate
desc Creates scrollable pop-up annotation boxes
url http://www.dokuwiki.org/plugin:annotate
@@ -78,7 +78,7 @@ function handle($match, $state, $pos, Doku_Handler $handler){
$id = $matches[1];
$text = io_readWikiPage(wikiFN($id, $rev), $id, false);
if($text) {
$match = preg_replace("/<top>.*?<\/top>/ms", "\n$text",$match);
$match = preg_replace("/<top>.*?<\/top>/ms", "\n$text\n",$match);
}
}
if(preg_match("/<bottom>([\w\:]+)\<\/bottom\>/m",$match,$matches)) {

0 comments on commit 043119d

Please sign in to comment.
You can’t perform that action at this time.