Skip to content

Commit

Permalink
fix ul/list tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemorroj committed Jan 10, 2014
1 parent 74d7e04 commit 316aa94
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Xbbcode/Tag/Address.php
Expand Up @@ -29,7 +29,7 @@
*/
class Address extends Tag
{
const BR_RIGHT = 1;
//const BR_RIGHT = 1;

/**
* Return html code
Expand Down
2 changes: 1 addition & 1 deletion src/Xbbcode/Tag/Align.php
Expand Up @@ -31,7 +31,7 @@
*/
class Align extends Tag
{
const BR_RIGHT = 1;
//const BR_RIGHT = 1;

/**
* @return Attributes
Expand Down
2 changes: 1 addition & 1 deletion src/Xbbcode/Tag/Code.php
Expand Up @@ -29,7 +29,7 @@
*/
class Code extends Tag
{
const BR_RIGHT = 1;
//const BR_RIGHT = 1;
const BEHAVIOUR = 'pre';

/* Альтернативные названия языков и их трансляция в обозначения GeSHi */
Expand Down
2 changes: 1 addition & 1 deletion src/Xbbcode/Tag/Hr.php
Expand Up @@ -30,7 +30,7 @@
class Hr extends Tag
{
const IS_CLOSE = true;
const BR_RIGHT = 1;
//const BR_RIGHT = 1;
const BEHAVIOUR = 'hr';

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Xbbcode/Tag/Ol.php
Expand Up @@ -31,8 +31,8 @@
*/
class Ol extends Tag
{
const BR_LEFT = 1;
const BR_RIGHT = 1;
//const BR_LEFT = 1;
//const BR_RIGHT = 1;
const BEHAVIOUR = 'ul';

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Xbbcode/Tag/P.php
Expand Up @@ -29,8 +29,8 @@
*/
class P extends Align
{
const BR_LEFT = 2;
const BR_RIGHT = 2;
//const BR_LEFT = 2;
//const BR_RIGHT = 2;
const BEHAVIOUR = 'p';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Xbbcode/Tag/Quote.php
Expand Up @@ -31,7 +31,7 @@
*/
class Quote extends Tag
{
const BR_RIGHT = 1;
//const BR_RIGHT = 1;

/**
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/Xbbcode/Tag/Table.php
Expand Up @@ -31,7 +31,7 @@
*/
class Table extends Tag
{
const BR_RIGHT = 1;
//const BR_RIGHT = 1;
const BEHAVIOUR = 'table';

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Xbbcode/Tag/Ul.php
Expand Up @@ -31,8 +31,8 @@
*/
class Ul extends Tag
{
const BR_LEFT = 1;
const BR_RIGHT = 1;
//const BR_LEFT = 1;
//const BR_RIGHT = 1;
const BEHAVIOUR = 'ul';

/**
Expand Down Expand Up @@ -64,6 +64,6 @@ protected function getAttributes()
*/
public function __toString()
{
return '<ul ' . $this->getAttributes() . '>' . $this->getAttributes() . '</ul>';
return '<ul ' . $this->getAttributes() . '>' . $this->getBody() . '</ul>';
}
}

0 comments on commit 316aa94

Please sign in to comment.