|
@@ 139-141 (lines=3) @@
|
| 136 |
|
$domElementA = $this->buildElement($document, $options[self::MAIN_TAG_KEY][0]); |
| 137 |
|
|
| 138 |
|
//Merge font size and font family to add inside the second wrapping DOMElement. |
| 139 |
|
if(!array_key_exists(self::MAIN_TAG_MERGE_STYLE, $options) || !is_bool($options[self::MAIN_TAG_MERGE_STYLE])) { |
| 140 |
|
$options[self::MAIN_TAG_MERGE_STYLE] = true; |
| 141 |
|
} |
| 142 |
|
if($options[self::MAIN_TAG_MERGE_STYLE]) { |
| 143 |
|
$options[self::MAIN_TAG_KEY][1][self::ATTRIBUTES_KEY] = array_merge( |
| 144 |
|
$options[self::MAIN_TAG_KEY][1][self::ATTRIBUTES_KEY], |
|
@@ 183-185 (lines=3) @@
|
| 180 |
|
$text = $document->createTextNode($node->getText()); |
| 181 |
|
|
| 182 |
|
//Bold an italic in old HTML way in order not to spread it to all children. |
| 183 |
|
if(!array_key_exists(self::MAIN_TAG_MERGE_DECORATION, $options) || !is_bool($options[self::MAIN_TAG_MERGE_DECORATION])) { |
| 184 |
|
$options[self::MAIN_TAG_MERGE_DECORATION] = true; |
| 185 |
|
} |
| 186 |
|
if($options[self::MAIN_TAG_MERGE_DECORATION]) { |
| 187 |
|
if($node->isBold()) { |
| 188 |
|
$bTag = $document->createElement('b'); |