Skip to content

Commit

Permalink
Removed lib
Browse files Browse the repository at this point in the history
git-svn-id: https://plugins.svn.wordpress.org/papercite/trunk@386516 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
bpiwowar committed May 19, 2011
1 parent 4390153 commit 4a01be4
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 2,199 deletions.
1 change: 1 addition & 0 deletions bib2tpl/bib2tpl-entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function start_element($parser, $name, $att) {

function end_element(&$parser, $name) {
if ($name == "format") {
$this->format = preg_replace("#[\n\r]+#"," ",$this->format);
unset($this->format);
} else if (!is_null($this->format)) {
$this->format .= "</$name>";
Expand Down
3 changes: 2 additions & 1 deletion bib2tpl/bibtex_converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,9 @@ function _translate($data)
// Replace global values
$result = preg_replace('/@globalcount@/', $this->_helper->lcount($data, 2), $result);
$result = preg_replace('/@globalgroupcount@/', count($data), $result);

$result = preg_replace('/[\n\r]+/',' ',$result);
$match = array();
//print "<div style='border: 1pt solid red;'>"; print_r(nl2br(htmlentities($result))); print "</div>";

// Extract entry template
$pattern = '/@\{entry@(.*?)@\}entry@/s';
Expand Down
Loading

0 comments on commit 4a01be4

Please sign in to comment.